日期:2014-05-16 浏览次数:20444 次
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("#abv").click(function(){
var ar=[];
$("input[type=password]").each(function(){
ar.push($(this).val());
});
var a=ar[0];
var b=ar[1];
alert("old-pass:"+a+"new:"+b);
});
})
</script>
<input type="button" id="abv" value="测试用按钮"/>
<table>
<tr>
<td width="100" height="40"><div class="text_rg">旧密码:</div></td>
<td width="600">
<div class="inp">
<input class="input_text2" old-password type="password" check-trigger="blur" check-len=1-20 check-message="<div class='no png'>请输入正确的密码</div>" check-ok="<div class='pass png'></div>" />
</div>
</td>
</tr>
<tr>
<td height="40"><div class="text_rg">新密码:</div></td>
<td>
<div class="inp">
<input class="input_text2" new-password type="password" check-trigger="blur" check-len=6-20 check-message="<div class='no png'>请输入正确的密码</div>" check-ok="<div class='pass png'></div>" />
</div>
</td>
</tr>
</table>