Nanwedar
06-16-2004, 12:04 PM
Hi all. I have a page that may or may not have checkboxes on it (it's a self submitting form with many levels, so depending on where in the process the user is, they will be there or not).
I also have a function to "check all" or "uncheck all". Currently the function is hardcoded to start with all or none checked and display the "check all"/"uncheck all" accordingly.
My question: Is there an easy way to do the following?
if this page contains any checkboxes and at least 1 is checked
{
set myFlag = true
}
else
{
set myFlag = false
}
I've tried several variations to get this working but to no avail thus far. Any thoughts greatly appreciated and thanks in advance!
I also have a function to "check all" or "uncheck all". Currently the function is hardcoded to start with all or none checked and display the "check all"/"uncheck all" accordingly.
My question: Is there an easy way to do the following?
if this page contains any checkboxes and at least 1 is checked
{
set myFlag = true
}
else
{
set myFlag = false
}
I've tried several variations to get this working but to no avail thus far. Any thoughts greatly appreciated and thanks in advance!