In reference to the following:
At the top of each column there is a box for "All".
When one is checked I need to check all of (and only) those boxes
underneath.
Now, the rub here is that every checkbox on the page (except the "All"s)
are coded like this:
<input type="checkbox" name="search" value="Rattan">
Well, they don't all have the value "Rattan" obviously. That value changes
from box to box. What does not change is the name "search".
This is because every checkbox represents a keyword search in the form and
must be named "search" in order to have its value included in the search
process. Changing that is not an option.
I know how to do this to check ALL the boxes on the whole page by name.
But that won't work for this. How can I differentiate between just the
boxes below a particular "All"?
Can it be done by putting a particular columns checkboxes in their own
nested table and set its id and work off that? My searching for answers
hasn't yielded much just yet. Any help is appreciated.
At the top of each column there is a box for "All".
When one is checked I need to check all of (and only) those boxes
underneath.
Now, the rub here is that every checkbox on the page (except the "All"s)
are coded like this:
<input type="checkbox" name="search" value="Rattan">
Well, they don't all have the value "Rattan" obviously. That value changes
from box to box. What does not change is the name "search".
This is because every checkbox represents a keyword search in the form and
must be named "search" in order to have its value included in the search
process. Changing that is not an option.
I know how to do this to check ALL the boxes on the whole page by name.
But that won't work for this. How can I differentiate between just the
boxes below a particular "All"?
Can it be done by putting a particular columns checkboxes in their own
nested table and set its id and work off that? My searching for answers
hasn't yielded much just yet. Any help is appreciated.
Comment