how to copy an object with some elements?
I want to copy this object, but each elm
still refers to the same DOM element?
var fields = {
account_id_ : {
name : Lang.get('HDL_ACCOUNT'),
width : 60,
elm : $('<input class="inp" type="text" style="text-align:right" />'),
value : '',
focus : true
},
name : {
name : Lang.get('HDL_NAME'),
width : null,
elm : $('<input class="inp" type="text" />'),
value : ''
}
};