Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
<script src="https://net-raft.com/plugins/jquery/toggle_input/ToggleInput.js" type="text/javascript"></script>
</head>
<body>
<input id="myID" type="text" value="mypassword"></br>
<button type="button">click</button>
<script>
$(document).ready(function () {
$("button").click(function () {
var myattr = $("#myID").attr("type");
$("#myID").Toggle_Input(myattr);
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions