redhead,
First of all thank you for replying with quickness because this is the only problem holding me back from posting my website to the 'net.
If I go with your 2nd option of naming the checkboxes (table1_1, table1_2, etc.), changing the code to call function checkAll(table){, and changing the allbox to onclick="checkAll("table1");", do I have to have a function checkall for each physical table on the page AND in the source code only change the table# after checkAll to the appropriate number.
Basic outline of the source code would look like this.
**Source Code**
<form
function checkAll(table1){
table1
<input type="checkbox" value="on" name="allbox" onclick="checkAll("table1");"/>
function checkAll(table2){
table2
<input type="checkbox" value="on" name="allbox" onclick="checkAll("table2");"/>
.
.
</form>
OR would it look like this?
<form
function checkAll(table){
table1
<input type="checkbox" value="on" name="allbox" onclick="checkAll("table1");"/>
table2
<input type="checkbox" value="on" name="allbox" onclick="checkAll("table2");"/>
.
.
</form>
I don't know if there is only one function checkAll or there needs to be one function for each table.
Thanks again for your time,
JM
|