Form Focus

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:

  1. $('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.

转载请注明:代码家园 » Form Focus

评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)