<li>
<label class="label">原密码:<span>*</span></label>
<div class="fc">
<input name="Opwd" type="password" maxlength="40" class="iText required" id="Opwd" onblur="pass1()" /><span class="tips"></span>
</div>
</li>
原密码如果不正确,怎么能够再次获得焦点
有focus()方法啊,e.g.:\
jQuery版本:
$("#password").focus();
原生js版本
document.getElementById("password").focus();
使用jQuery:
$(function(){
$("#password").focus();
});
如果密码不正确时,$("#password").focus();
当密码不正确时,用focus去获取焦点