Shiv Kumar Yadav

Shiv Kumar Yadav

  • 1.7k
  • 203
  • 13.5k

Array in jquery

Dec 31 2017 6:00 AM
Can someone please tell me what wrong with this jquery because i am not getting any error can not get value in var lbl and var datvar lbl = []; var dat = [];$.ajax({url: "../Graph/GetData",type: "Post",data: "{}",dataType: "json",success: function (data) {$.each(data, function (key, value) {lbl.push[value.Item];dat.push[value.price];alert("Item" + lbl + " Price" + dat)})}});

Answers (1)