javascript - Updating a data object with a new value -
i'm trying update data object new value. have
if($("#articlesholder").data(event.data.id) != null) { $("#articlesholder").data(event.data.id, {name:event.data.name, nr:newnr, price:event.data.price, articlenr:event.data.articlenr}); }
now want update existing data object on $("#articlesholder")
want update 1 value not values. how i, example, update nr
nr +1
?
i think it's possible change data value somehting like:
$("#articlesholder").data(event.data.id).nr = '52';
Comments
Post a Comment