1个回答
展开全部
<form id="form1" name="form1" method="post" action="">
<input name="pass1" type="password" id="pass1" />
<br />
<input name="pass2" type="password" id="pass2" onblur="if(this.value!=this.form.pass1.value){alert('两次密码不一致!');return false;}"/>
</form>
<input name="pass1" type="password" id="pass1" />
<br />
<input name="pass2" type="password" id="pass2" onblur="if(this.value!=this.form.pass1.value){alert('两次密码不一致!');return false;}"/>
</form>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询