|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When my page is loaded I want to check some some checkboxes, e.g. to check whether all except one checkbox's be checked.
I have these fields for example: <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> <input type=checkbox name=extraID value=0> <input type=checkbox name=extraID value=1> <input type=checkbox name=extraID value=2> [/code] What I want to do is to loop through all extraID depending on value (not name) <dummy code> <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> for (i=1;i<2;i++) { if (document.form.extraID.value[i].checked == true) { var one_at_least = 1; } [/code] Hope you understand my question. Thanks. ------------------ ¬ peterbe.com ¬ |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Check boxes depending on value not name |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|