R
Ralph Freshour
I have multiple checkbox's created with an array name because I have
many on the same web page - their names are like:
frm_chk_delete[0]
frm_chk_delete[1]
frm_chk_delete[2]
frm_chk_delete[3]
etc.
Here is my code line that creates each checkbox (the php variable get
incremented of course):
<INPUT TYPE="checkbox" NAME="frm_chk_delete[<?php echo
$php_delete_counter;?>]">Delete
When I click on the Delete button I want to call a JS routine to check
that at least one checknbox has been checked and marked for deletion
when the form submit is called my php file will detect and delete the
checkboxes accordingly.
I'd like to use JS before the submit and make sure at least one of the
checkboxes is checked - how do I loop through these array name
checkboxes in javascript to check their states before submitting?
Thanks...
many on the same web page - their names are like:
frm_chk_delete[0]
frm_chk_delete[1]
frm_chk_delete[2]
frm_chk_delete[3]
etc.
Here is my code line that creates each checkbox (the php variable get
incremented of course):
<INPUT TYPE="checkbox" NAME="frm_chk_delete[<?php echo
$php_delete_counter;?>]">Delete
When I click on the Delete button I want to call a JS routine to check
that at least one checknbox has been checked and marked for deletion
when the form submit is called my php file will detect and delete the
checkboxes accordingly.
I'd like to use JS before the submit and make sure at least one of the
checkboxes is checked - how do I loop through these array name
checkboxes in javascript to check their states before submitting?
Thanks...