Form controls manipulation
checked is a form's element checkbox attribute
values are booloean true/false
the default (obj.checked) value is true
But can i put dynamic varables into this ['checkboxname'] since am generating the name dynamically?
it does not matter wether names are set up as a HTML static code or are dynamically generated. The condition is that those checkboxes to have a unique name
<input name="blabla0" type="checkbox">
<input name="blabla1" type="checkbox">
If you use an incremental type name (blablai), you may later simplify the code using a for loop.
You may also use the order of elemets, not necessarily the name, as the general reference is
In this case you have to build first an array with the elements who have the same type (type="checkbox" in your case)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)