Tramite jQuery e Ajax al click sul bottone con classe select vorrei passare a php tutte le checkbox con classe .mycheck selezionate
Codice PHP:
jQuery(document).ready(function() {
jQuery('.select').live('click',function() {
var mycheck = new Array();
jQuery(".mycheck:checked").each(function() {
var checked_status = jQuery('.mycheck').checked;
if(checked_status==true)
{ mycheck.push(jQuery(this).val()); }
});
jQuery.ajax({
type: 'POST',
url: controllo.php',
data:'select'+mycheck,
success: function(response){
jQuery('.table').replaceWith(response)
});
}
});
});