FYI: Starting in 1.1, $(this).blur() and this.blur() are completely equivalent.
--John
On 1/8/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Brice,
>
> I think you would want to use this.blur() instead of $(this).blur(). And you
> probably would want to return false, because presumably you're staying on
> the same page if you're concerned about removing the dotted rectangle, and
> "return false" will prevent the default behavior.
>
> $('a').click(function() {
> this.blur();
> return false;
> });
>
> I wrote about this a few months ago:
> http://www.learningjquery.com/2006/10/quick-tip-blur-links
>
> --Karl
> _________________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
> On Jan 8, 2007, at 2:37 PM, Brice Burgess wrote:
>
>
> Klaus Hartl wrote:
>
>
>
>
>
> You can blur links as well (for example to remove the dotted rectangular
>
> after a click and fix IE's broken implementation for the :active pseudo
>
> class)...
>
>
>
>
>
>
>
> -- Klaus
>
>
>
>
>
>
>
> Something like $('a').click(function(){$(this).blur();
> return true; }); ?
>
>
>
>
> ~ Brice
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/