jquery - Accessing JSON data -
jquery - Accessing JSON data -
if given next info web-service:
{ "d": [ { "col1": "col 1 info 1", "col2": "col 2 info 1" }, { "col1": "col 1 info 2", "col2": "col 1 info 2" } ] }
how access sec col1?
as following:
success: function( info ) { alert( data.d ) ; },
gives me:
[object object],[object object]
its array 2 elements containing col1
, col2
, like:
alert(data.d[1].col1);
(0
first element, , take "col1")
json jquery
Comments
Post a Comment