jquery - Not able to get JSON data by javascript -
i using each method data.
$('#griddetails th').each(function(index, element) { var head = $(this).html(); console.log(head); var data = datas[0].head; console.log(data); var div = $('<div>'+head+'</div><div>'+data+'</div>'); console.log(div); $('#griddetails').append(div); });
head has symbol & price here head shown. data not able get. , when use datas[0].symbol, shows correctly
Comments
Post a Comment