Wednesday, January 20, 2016

$.get

// call to server
$.get(index.action,function(res){

if result list of object from server 
result = $.parseJSON(res);
if the size of list return from server is 3then
    data = result[0];
data1 = result[1];
data2 = result[2];
data3 = result[3];
    showid(data.id);
showid(data1.id);
showid(data2.id);
showid(data3.id);

});

No comments:

Post a Comment