浏览代码

add select element in focus

Kaoru FUZITA 9 年之前
父节点
当前提交
d2bb119c4d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/webapp/js/admin/admin.js

+ 1 - 1
src/main/webapp/js/admin/admin.js

@@ -1,5 +1,5 @@
 $(function() {
-	$('input[type="text"]:first', '.login-box,section.content').focus();
+	$('input[type="text"],select', '.login-box,section.content').first().focus();
 
 	$("section.content input").keypress(function(e) {
 		if (e.which == 13) {