On the front page of a site I am building, several s use the CSS :hover pseudo-class to add a border when the mouse is over them. One of
s use the CSS :hover pseudo-class to add a border when the mouse is over them. One of
:hover
There is a plugin to check if an element is focused: http://plugins.jquery.com/project/focused
$('input').each(function(){ if ($(this) == $.focused()) { $(this).addClass('focused'); } })