I have a variable that is an object with 2 nodes:
var jDef = {id: 'hola', valores: [{cod: 1, desc: 'dddd'}, {cod: 2, desc: 'bbbb'}]}
In another part of the program, I do:
var jTemp.valores[1] = $.extend(jDef.valores[1], {selected: true});...
asked by
12.11.2016 / 12:50