登录页面效果图
![](https://images2015.cnblogs.com/blog/586574/201601/586574-20160125102021973-321000868.png)
jQuery(function() { $("#userName")[0].focus(); $("#userName").bind('keydown', function(event) { if (event.keyCode == 13) { $("#password")[0].focus(); } }); $("#password").bind('keydown', function(event) { if (event.keyCode == 13) { $("#verifyCode")[0].focus(); } }); $("#verifyCode").bind('keydown', function(event) { if (event.keyCode == 13) { $("#btnLogin")[0].focus(); } }); $("#btnLogin").bind('keydown', function(event) { if (event.keyCode == 13) { submitForm(); } }); });