On 1/12/07, Aaron Heimlich <[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 -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
