WOW! That's so close to what I was going to do it is scary!
I wasn't going to bother with the :checked part on the style, since he needs the
onclick anyway (I was just going to change the style via the onclick).
But I *do* like the fact than now the onclick handler can be completely independent.
NOW....
What I still don't get is this part
Quote:
|
If they've not checked that they have completed 2011 for example or not checked everything in-side to auto-check the 2011 objectives, the 2012 objectives will not show on the map as they don't be available.
|
How will changing the class *OF THE CHECKBOX* help with all of that???
Seems to me you want to change the class of something that *depends* on the checkbox! That is, as you say, if the 2011 objectives are not met then the class for the 2012 objectives would presumably contain
display: none; or equivalent.
It also seems to me that you want to change the class (or maybe simply the color) of the *labels*, not necessarily of the checkboxes, per se.