I've seen the same behaviour outside of jQuery - something to do with
the way 'for' sends events to the target element.

Can't remember how/if I fixed it, but you could ditch the label and
use jQuery to emulate the label functionality. Not a bad option
considering not all browsers support labels correctly/consistantly.

On Dec 27, 11:04 am, Michael Nosal <[EMAIL PROTECTED]> wrote:
> If I have a div with a label and input in it:
> <div id="tab">
>   <input type="radio" id="r1" value="foo">
>   <label for="r1">My Label</label>
> </div>
>
> and I add a click handler like so:
> $('r1').click(function() {
>   window.console.log("hello");
>
> });
>
> Clicking the div or the radio button gets one call to the click function.
> Clicking the label element results in the click function being called twice.
> Known? Unknown? Workaround?
> Using jquery 1.2.1
>
> --Mike N.

Reply via email to