While I think Morten's comment is the "best" way, I'll go ahead and throw in
my 2 cents.
<a href="#" id='myA'><label>
<input type="checkbox" name="foo" />
Some label here.
</label></a>
connect('myA','onclick',function(evt){ evt.stopPropagation(); });
The click will then never even make it to the A, plus labels by default will
check/uncheck checkboxes when clicked, PLUS the text and checkbox will be
nice and lined up correctly.
;)
-matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---