view my password jquery
$("#showpaswd").click(function () {
var x = document.getElementById("cpassword");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
});$('#check').click(function(){
if(document.getElementById('check').checked) {
$('#test-input').get(0).type = 'text';
} else {
$('#test-input').get(0).type = 'password';
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type='password' id='test-input' /> Show password <input type='checkbox' id='check' />
Also in JavaScript:
- how to update array in react state
- jquery dom traversal parent
- linear search js
- AJAX in reload a div container
- delete js
- how to deploy react app firebase
- how to delete element in list javascript
- nextjs reportWebVitals function
- javascript add commas to number
- json full form
- how to flip a Number in javascript
- javascript trigger click on element
- js get last 4 digits
- angular-bootstrap-md angular 10
- check if number is negative javascript
- jquery ajax Uncaught TypeError: Illegal invocation
- install node js in manjaro
- load js
- jquery hide()
- get value of textarea jquery
- how to post json to cloudwatch
- js combine two arrays
- react tomcat
- javascript password generator