jquery代码查找页面中第一个input type="text"输入框,并把焦点设为它。 $(":text:first").focus(); 转载于:https://www.cnblogs.com/coolwind/archive/2010/01/29/1659388.html