How to pass array to php using jquery
function savedata()
{
var val = [];
$(’:checkbox:checked’&& ‘:checkbox:enabled’).each(function(i)
{
val[i] = $(this).val();
$.ajax({
type:"POST",
url:"display.php",
data:{"arr":val[i]};
success: function(data)
{
}
});
});
}
</script>