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
CSS:
.focus { border-color:red; }
JQuery:
$(document).ready(function() { $('input').blur(function() { $('input').removeClass("focus"); }) .focus(function() { $(this).addClass("focus") }); });