I am trying to update values of an array but I am getting null instead. Here is how I populate the array:
var id_status = []; id_status.push({ id:1, status: "true" });
So basically I end creating a JSON object with this array but how do I update individual values by looping through the array? Here is what I am attempting to do:
var id = $(this).attr("id"); id_status[id] = "false";
I want to be able to access the item in the array and update its' status after getting the row id.