While surfing the Web, you probably noticed the dotted outline, that appears when you click on the link. If your link doesn’t lead to another page, but instead triggers some event in the same page, outline stays there and looks ugly.
For modern browsers you can remove it with simple css:
Unfortunately, this won’t do for IE 6 and earlier.
This will remove outline from the link once he is clicked. You will see the outline when clicking, but it will not stay there.
If you don’t want to se the outline at all replace click event with focus event:
To find more about jQuery Events visit http://docs.jquery.com/Events