Add an outline and background to text inputs when they are given focus. The following parameter are used.
If the fields aren’t given a border, they will get an inset one if a background colour is applied via the plugin. So to prevent this from happening, you could simple have this in your stylesheet. Also, Opera applies a tranparent background, so you may want to add a white background as well.
input.text, textarea.text {
border: 1px solid #000;
background: #fff;
}
And apply the class ‘text’ to any elements this plugin is applied to.
Demo: http://www.texotela.co.uk/code/jquery/focusfields/
Download:jquery.focusfields.js jquery.focusfields.pack.js
Source: http://www.texotela.co.uk/code/jquery/focusfields/

Related Listings:
No comments yet.
RSS feed for comments on this post. TrackBack URL