View Single Post
Old 02-18-2007, 01:07 PM   #3 (permalink)
JMareel
Recruit
 
Join Date: Feb 2007
Posts: 20
JMareel is on a distinguished road
Question

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
JMareel is offline   Reply With Quote