Im using
var blkstr = jQuery("#toolbar1").getGridParam('selarrrow');
var roles = $.map(blkstr, function(val,index) {
var str = val;
return str;
}).join(",");
alert(roles);
The alert is showing exactly like this- 1,2,3,4
im trying to POST ‘roles’ while posting its going something like 2%2C+3%2C+4%2C+1 .
I just need the ids of the row elements checked like 1,2,3,4 to be POSTED to server.
Thanks in advance ,
Abhi
You could try formatting it as JSON or using a different delimiter such as
_which will not be escaped in the HTTP request.