日期:2014-05-16 浏览次数:20414 次
<script type="text/javascript">
function showPwd() {
var oCB = document.getElementById("CBShowPwd");
var oTB = document.getElementById("tbPwd");
if (oCB.checked == true) {
oTB.type = "text";
}
else {
oTB.type = "password";
}
}
</script>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style type="text/css">
body{font:12px "宋体";}
#aa{cursor:pointer;}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#aa").click(function(){
$("#bb").attr("type","password");
});
});
</script>
</head>
<body>
<div id="aa">改变密码</div>
<input type="text" id="bb">
</body>
</html>