Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery show password

 $("#showpaswd").click(function () {
        var x = document.getElementById("cpassword");
        if (x.type === "password") {
            x.type = "text";
        } else {
            x.type = "password";
        }
    });
Comment

view my password jquery

$('#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' />
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to set input date to today date on initialization 
Javascript :: remove required attribute jquery mvc 
Javascript :: js string reverse exception 
Javascript :: javascript example of foreach loop 
Javascript :: push array javascript 
Javascript :: javascript how to get middle letters of a string 
Javascript :: unique element in array 
Javascript :: join array js 
Javascript :: export all functions from js file 
Javascript :: check if value is boolean 
Javascript :: clear value input jquery 
Javascript :: encrypt javascript node 
Javascript :: data-id html javascript 
Javascript :: how to calculate the time complexity of a recursive function 
Javascript :: how to assign value to variable 
Javascript :: convert 24 hour to 12 hour moment js 
Javascript :: nodejs import instead of require 
Javascript :: javascript regex example match 
Javascript :: find specific word string js 
Javascript :: is javascript good 
Javascript :: javascript type casting int 
Javascript :: create node js api 
Javascript :: chart js radar grid color 
Javascript :: javascript anagram 
Javascript :: on refresh page vue.js application return 404 
Javascript :: how to icon font-awesome react cart 
Javascript :: angular passing data to child component 
Javascript :: fetch api in js 
Javascript :: how to randomize an array 
Javascript :: Google Maps JavaScript API error: InvalidKeyMapError 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =