




















HTML代码:
<td class="label"> * <label for="password" accesskey="">登录密码:</label></td>
<td ><div id="ps"><input type="text" name="password" maxlength="15" id="pass" /></div>
<input name="checkbox2" type="checkbox" value="true" checked="checked" id="show" onclick="shoppw(this)" />
<label for="show" accesskey="">显示</label></td>
可以运行时动态改变imput元素的type属性值