Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Form Focus


This plugin allows you to specify the form element on which the initial focus should be set

  • Only sets the focus if the user is yet to type anything into the form field
  • Also supports setting the focus on select elements, radio buttons and checkboxes as well as buttons

Using it is as simple as calling:

$('form > input:first').formFocus();

Please note: jQuery selectors that return more than one element are not supported as only one element can receive the keyboard focus at a time.

Downloads



0
Your rating: None