表单的焦点顺序和对应enter键提交
表单的焦点tap键顺序:tabindex决定,如果值缺省,择按顺序
用户:<input name="Text1" type="text" tabindex="1" /> 密码:<input name="Password1" type="password" tabindex="2" >
对应onsubmit事件即可:
js:表单获取焦点事件:$(”#nameInput”).focus()
发布时间: 2012-11-26 11:48:49 作者: rapoo
表单的焦点顺序和对应enter键提交
表单的焦点tap键顺序:tabindex决定,如果值缺省,择按顺序
用户:<input name="Text1" type="text" tabindex="1" /> 密码:<input name="Password1" type="password" tabindex="2" >
对应onsubmit事件即可:
js:表单获取焦点事件:$(”#nameInput”).focus()