Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

password page javascript

var passwordText = document.getElementById("id").value;
if(passwordText == "hello300") {
  return true;
}
else {
  alert("Not correct")
  return false
}
Comment

show password using javascript

<script>
$(document).ready(function(){
    $('#checkbox').on('change', function(){
        $('#password').attr('type',$('#checkbox').prop('checked')==true?"text":"password"); 
    });
});
</script>
<input type="password" id="password"> 
<input type="checkbox" id="checkbox">Show Password
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to get element by class name javascript 
Javascript :: react date format 
Javascript :: onchange value in hidden input 
Javascript :: jquery replace text in div 
Javascript :: getFullYear within moment in angular 
Javascript :: json decode android 
Javascript :: jshint ignore line 
Javascript :: find property in nested object 
Javascript :: date javascript format 
Javascript :: Addition aruments in javascript 
Javascript :: React Native Starting In Android 
Javascript :: check which is dubicate in object of array 
Javascript :: call json api javascript 
Javascript :: completely remove duplicate element from the array 
Javascript :: javascript clear child elements 
Javascript :: clear a div 
Javascript :: js if else statement one line 
Javascript :: js jquery include external script 
Javascript :: create react expo 
Javascript :: jquery use variable in string 
Javascript :: how check if a form date is before today javascript 
Javascript :: useref() in react 
Javascript :: get total width of element including padding and border using jquery 
Javascript :: js count char frequency in string 
Javascript :: p5.js 
Javascript :: popover on show event 
Javascript :: reverse json.stringify 
Javascript :: liquid object 
Javascript :: js merge 2 form data 
Javascript :: get list of all attributes jqery 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =