Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
</head>
<body>
<input id="myID" type="text" value="password">press enter
<script type="text/javascript">
$(document).ready(function () {
$(document).keydown(function (e) {
switch (e.which) {
case 13:
var o = $("#myID").attr("type");
if (o == "text") {$("#myID").attr("type", "password")}else{$("#myID").attr("type", "text")}
break;
}
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions