Click to See Complete Forum and Search --> : disabling a group of checkboxes


casa
12-08-2002, 08:39 PM
I'm working on an assignment entry page for my son's school.

My example:
If a teacher teaches 3 sections of 10th grade history and 3 sections of 11th grade history, and wants to entry assignments for his 10th grade class, I want him to be able to select the 10th grade radio button and any or all of the check boxes next to the class sections. I also want the checkboxes next to the 11th grade sections to be disabled. Like this:


O 10th grade US History [] section 01
[] section 02
[] section 03

O 11th grade US History [] section 01
[] section 02
[] section 03


I'm looking around to see if I can find something similar before I spend a huge amount of time writing a script. I'm not my of a JavaScript programmer. I'm much stronger in PHP, though I'm just learning that as well.

The site is written in PHP, using a mySQL database and these lists are dynamically generated, so the javascript to disable the button will also have to be dynamically generated.

I know this can be done, just not sure where to start. I do okay changing up someone elses scripts if they aren't too complicated.

Any ideas, suggestions, tip???

casa
12-08-2002, 09:23 PM
Dave, thanks for the response. I don't know if it's the hour or what, but I'm not quite sure I get what you're saying. It's been a long weekend, so maybe it will make more since in the moring. I was just getting ready to walk out to the car and get my JavaScript book. I need a new one. I've got the WROX Beginning JavaScript book. Any suggestions on another?