php - AJAX Variable data -
i have question ajax.
my ajax script :
{ "data": "noinduk", "width": "100px", "sclass": "text-center", "orderable": false, "mrender": function(data) { return '<a href="data.php?noinduk="' + data + '"">edit</a>'; }
how can make more 1 variable review data request.
return '<a href="data.php?noinduk="'+ data + '"">edit</a>';
be
return '<a href="data.php?noinduk="'+ data + '"/"'+ data2 + '"">edit</a>';
one solution whole data concatenating specific delimiter | , on ajax response split data, have 2 responses.
{ "data": "noinduk", "width": "100px", "sclass": "text-center", "orderable": false, "mrender": function(data) { var newdata = data.split('|'); '<a href="data.php?noinduk="'+ newdata[0] + '"/"'+ newdata[1]+ '"">edit</a>'; }
Comments
Post a Comment