I have been using datatables for my project and only I discovered recently that the javascript I used is only selecting the checkboxes in the current page. Values of checked checkbox in other pagination/page is not selected or retrieved. Is there a way I can recognize checked checkboxes in all page of a pagination? Please help. Here is my code.
$('#create-po').click(function(e){
e.preventDefault();
$("input:checkbox:checked").each(function(i){
valArray[i] = $(this).val();
});
});
This code recognizes checked checkboxes in a current page but not recognizes checked checkboxes in other page.
Aucun commentaire:
Enregistrer un commentaire