I am looking for some jQuery code to clear all checkboxes on a page when any other box is checked.
Basically I am looking for "radio" performance for some legacy code, but using "radio" won't work, since the checkbox names are arrays, and therefore unique. The "name" is prod[someAlpha] There are potentially 30 to 40 on a page at a time, but from hundreds of potential product names.
The inputs already have a class and an ID, but I believe I could use a common rel value to identify them.
I have some code that unchecks all when a particular checkbox is checked, but I need it to uncheck all when ANY checkbox is checked.
I'd prefer a jQuery solution, since I'd rather not have to add code to my input statements, but if that is the only option, I am open to other methods.
I'd appreciate your help!