练习使用jquery.并将验证强度的功能加到注册页面中

<body onload="InitCss();">this

<form name="frm">spa

密码:<input  id="txtPassword"  onload="InitCss();" type=password size=10 onKeyUp=checklevel(this.value)   onBlur="ValidateInput('password',this.value)"><td> <div id="tipPosition"></div> </td><br/>orm

强度:<table width="210" cellspacing="1" cellpadding="0" bordercolor="#cccccc" height="9">ip

<tr align="center" bgcolor="#eeeeee">ci

 

<td width="33%" height="5" id="strength_L"></td>input

 

<td width="33%" id="strength_M"></td>it

 

<td width="33%" id="strength_H"></td>io

</tr>table

</table>form

</form>

 

</body>

运行:

相关文章
相关标签/搜索