var arr = new Array();
var idsObj = $("input [name='ids']");
for(var i=0;i<idsObj.length;i++){
if(idsObj[i].checked){
arr .push(idsObj[i].value);
}
}
var arr = new Array();
var idsObj = $("input [name='ids']");
for(var i=0;i<idsObj.length;i++){
if(idsObj[i].checked){
arr .push(idsObj[i].value);
}
}