> But what I've seen is that people are trying to use it to /do/ the 
> actual blurring. So, it might appear in a .click() function like so:
> $('a.clickme').click(function() {
>    $(this).next('div').show();
>    $(this).blur();
> });
> 
> Presumably this is to move the focus off of the "a" tag so that the 
> pesky dotted outline goes away.
> 
> So, my question: Is there a way to actually blur the element after 
> clicking on it? Is there a "best" way to do that?

Hi Karl, it is pretty simple to blur:


$('a.clickme').click(function() {
     $(this).next('div').show();
     this.blur();
});

In Firefox >= 1.5, if you want to remove the dotted border put the 
following into your style sheet:

a:focus, a:active {
     outline: none; /* @ Firefox 1.5, remove ugly dotted border */
}

-- Klaus



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to