Thanks Aaron for the solution and explanation - my problem is now fixed and I understand how/why.

Cheers,

Bruce


At 08:10 p.m. 12/01/2007, you wrote:
On 1/12/07, Aaron Heimlich <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote: And anyway, when you click on a <label>, the element it's associated with gets "clicked" on as well (except in Safari, IIRC), meaning that clicking on labels same effect as clicking on the element it's associated with.


Correction: when you click on a <label> all of it's "click" handlers are fired *and then* all of the "click" handlers of the element it's associated with are fired.

So in your case, binding a "click" handler to the <input> should be sufficient. Users that click on the radio button will get the "click" handler, and users that click on the <label> will get it too (but the <label>'s "click" handlers, if any, will be fired first).

Test page: <http://aheimlich.freepgs.com/tests/javascript/inputs-and-labels.html>http://aheimlich.freepgs.com/tests/javascript/inputs-and-labels.html

--
Aaron Heimlich
Web Developer
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to