Jump to content

making an array of html check boxes


mikeg542

Recommended Posts

Hi, I'm trying to learn JS here and I'm having a bit of trouble here...

 

Currently I have a page with 3 checkboxes that have an onClick() attached to them. Each checkbox has 3 sub-checkboxes that are hidden until the main one is checked. As well, if the main one is checked, but none of the sub ones, it assumes that all of them have been.

 

What is the general idea behind doing this? Is this easier with ajax? Can this be done in jQuery?

Thanks a lot!

Link to comment
https://forums.phpfreaks.com/topic/152982-making-an-array-of-html-check-boxes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.