Hi I am new to javascript. I want to get the index of array using its value and append new element into that array. Here is my array:
var testArray=[];
testArray.push({"key1":"value1","key2":"value2"});
testArray.push({"key1":"value11","key2":"value22"});
Now I want to get the index of "value11" and also append new element as "key3":"value33" in the same index as below:
testArray.push({"key1":"value11","key2":"value22","key3":"value33"});
Please explain. Thanks in advance...