Hi,
I have this code to update users data, but I can't write the for loop inside jquery data!!
Is there any way to modify the follwing wrong code to be correctly
function DisactiveUser()
{
var num_checkboxes = document.forms[0].elements.length-1;
$.ajax({
type: "POST",
url: "submit/php/users.php?do=disactive",
data: for(i = 1; i <= num_checkboxes; i++)
{
"&chk" + i + "=" + document.getElementById("check" + i).value +
"&chkc" + i + "=" + document.getElementById("check" + i).checked +
}
success: function(html){
$("#loading").html(html);
}
});
}