I am trying to see if a certain key exists in an array, and if so, return it's value:
if(jQuery.inArray(live_ids.grade, item.SizePrice) !== -1) {
console.log(item.SizePrice);
}
This will return:
{"8":"15.00","7":"20.00","1":"6.00","6":"11.00","2":"7.00","3":"8.00","4":"9.00","5":"10.00","11":"20.00","9":"10.00","10":"15.00","13":""}
Now, live_ids.grade = 9, so I want to be able to return 10.00... how do I do that?