lundi 1 décembre 2014

Using javasript, how to change the value of an array element


I have a javascript array that I have created using



myArray.push([{{ rdata.Product_id }}, 1]);


I want to be able to search in this array and update the value from "1" and make it "2" based upon this product id (rdata.Product_id).


How can this be accomplished? Thanks!





Aucun commentaire:

Enregistrer un commentaire