thanks erik,

your sample had reveal something to me :)



On Oct 19, 2:13 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> .click(...) and .bind('click', ...) should do the same thing. What version
> of jQuery are you using? This also works for me, again on FF2/Mac:
>
> $(':checkbox').bind('click', function(e) {
>   this.blur();
>   e.preventDefault();
>
> });
>
> --Erik
>
> On 10/18/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
> > is that different if I use .click() instead of .bind()? because it
> > doesn't work for me
>
> > thanks
>
> > On Oct 19, 1:57 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> > > Just return false from a click handler. The box will be focused, which
> > > will change the way it looks a little, so you may also want to blur
> > > it. Something like:
>
> > > $(':checkbox').bind('click', function() {
> > >   this.blur();
> > >   return false;
>
> > > });
>
> > > Tested on FF2/Mac.
>
> > > --Erik
>
> > > On 10/18/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> > > > hi,
>
> > > > how do i prevent the checkbox to be check when click if it doesn't
> > > > meet certain requirements?
>
> > > > Thanks

Reply via email to