View Single Post
Old 01-05-2013, 12:23 AM   PM User | #31
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,567
Thanks: 62
Thanked 4,058 Times in 4,027 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote