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.
Form Focus 官网
http://plugins.jquery.com/project/FormFocus
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。