SoFunction
Updated on 2025-02-28

Discussion on the problem of modifying input type attributes


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:///TR/html4/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Adang Production</title>
</head>
<style type="text/css">

</style>
<body>
<input name="" type="text" value="password" class="inputText_1" style="width:100px;" />
<input name="" type="password" style="display:none;width:100px;" />
<script type="text/javascript">
var tx = ("tx"), pwd = ("pwd");
= function(){
if( != "password") return;
= "none";
= "";
= "";
();
}
= function(){
if( != "") return;
= "none";
= "";
= "Password";
}
</script>
</body>
</html>