JS实现Enter键跳转及控件获得焦点
代码如下: //回车跳转 jQuery(document).ready(function () { //$(‘:input:text:first’).focus(); jQuery(‘:input:enabled’).addClass(‘enterIndex’); // get only input tags with class data-entry textboxes = jQuery(‘.enterIndex’); // now we check to see which browser is being used if (jQuery.browser.mozilla) { jQuery
下载地址
用户评论