My array looks like this.
var qnsAnsArray = [];
var qnAnswer = { qn: a, points: curretnAnswerPoint };
qnsAnsArray.push(qnAnswer);
and the value getting in the array is
qnsAnsArray =[
Object { qn=0, points="2"},
Object { qn=1, points="2"},
Object { qn=2, points="6"},
Object { qn=2, points="2"},
Object { qn=3, points="3"}
]
how will i get the duplicate 'qn' value by using jQuery? Each time when I change answer, I wants to update answer points instead of insertion into the array.
Thanks in advance.