Jamie
asked on
3 Checkboxes (A,B,C) on form, with 3 groups (AG, BG, CG) of other checkboxes - tick/untick all in corresponding group
Hi All,
I've got a web form, which has 3 checkboxes - A, B & C - and additionally, 3 seperate groups of checkboxes - AG, BG and CG. If checkbox A is ticked - I want, via javascript, all checkboxes in group AG only ticked - and unticked if checkbox A is unticked - and the same for B and C. I'm getting in a right muddle with this!
Hope you can help.
Regards
JamWales
I've got a web form, which has 3 checkboxes - A, B & C - and additionally, 3 seperate groups of checkboxes - AG, BG and CG. If checkbox A is ticked - I want, via javascript, all checkboxes in group AG only ticked - and unticked if checkbox A is unticked - and the same for B and C. I'm getting in a right muddle with this!
Hope you can help.
Regards
JamWales
ASKER
Hi ansudhindra,
Many thanks for your quicky reply, it works well, just one little tweak if possible? Apologies, should have put that in - as all my form fields elements already have names and values which are already named in such a way for some other scripts I have running.
Rather than working for the name and values elements - could it work by ID
Regards
JamWales
Many thanks for your quicky reply, it works well, just one little tweak if possible? Apologies, should have put that in - as all my form fields elements already have names and values which are already named in such a way for some other scripts I have running.
Rather than working for the name and values elements - could it work by ID
Regards
JamWales
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi ansudhindra,
Fantastic - works exactly as I want - many thanks for sorting this out so quickly.
Regards
JamWales
Fantastic - works exactly as I want - many thanks for sorting this out so quickly.
Regards
JamWales
Open in new window