I have following json string. I need only 'locked' item and need to pass to a jquery function.I used json encode from php to get the string.
{"ignored":[],"status":{"message":"success","code":200},"locked":[8089033,8092415]}
My jquery function is as follows
$.map(locked, function (id) {
$("#grid-table tr#" + id)
.find("input[type=checkbox]")
.after($("<img src='http://www.placehold.it/20x10/ff0000'>"));
});
});
I am not getting an idea how to get only locked= [8089033,8092415]; to my jquery function