Here is my code:
var newval =[{"new_id":"1","new_no":"1","total":"N.A"},{"new_id":"2","new_no":"3","total":"4"},{"new_id":"2","new_no":"4","total":"5"}];
from this json value how to get details based on new_no value using javascript or php.
function passfun(new_no)
{
alert(newval[0].plot_no);
}
I tried like this but its working based on json array values i not getting exact values based on new_no