jquery show password
$("#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:
- jquery disable keypress
- convert date to string javascript
- javascript sleep settimeout
- on click move item top react
- return this javascript
- javascript get array of class names
- how to add functionality inside js object
- download comma separated file, react
- select a form by name jquery
- how to use fetch() to fetch an image from database in js
- json beautify
- javascript template string
- prevent form submission using jquery
- get value in tag with id JS
- check member role discordjs 12
- device width javascript
- best js method
- devexpress dxdatagrid custom text field link
- jquery ajax upload image
- join three array javascript
- react check if localhost
- how to use redirect in react
- boton de copiar en html y js
- js remove json value duplicates