Reputation: 51100
I have an array of objects in Javascript. Can I change the object values like this.
query
~ the arraypropertyIndex
~ a value that is the index of the array elementselected
~ one of the variables of the object that is saved to the arraytrue
~ the value I want to set selected to be equal toCode:
query[propertyIndex].selected='true';
Upvotes: 0
Views: 135