Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to add see button in password input in html

togglePassword.addEventListener('click', function (e) {
    // toggle the type attribute
    const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
    password.setAttribute('type', type);
    // toggle the eye / eye slash icon
    this.classList.toggle('bi-eye');
});Code language: JavaScript (javascript)
Comment

PREVIOUS NEXT
Code Example
Html :: HTML HOW TO MAKE QUOTE 
Html :: scrollbar in html div 
Html :: flutter html parser 
Html :: shopify liquid for loop 
Html :: h1 alert 
Html :: tailwind flex grow 1 
Html :: add accordion in bootstrap 
Html :: bootstrap table same width 
Html :: How many heading tags are there in HTML5? 
Html :: radio 
Html :: simple website using html and css 
Html :: html p 
Html :: what is div in html 
Html :: onclick in php html 
Html :: random number text in html 
Html :: html input time default value 
Html :: HTML <sub Element 
Html :: latex in html 
Html :: convert figma to html 
Html :: How to install Ubuntu 17.04 in VMWare Workstation 
Html :: html span 
Html :: build a fed ex tracking html css 
Html :: html script source 
Html :: how many types of error in html 
Html :: html non importa immagini in webpack 
Html :: unity console debug bold 
Html :: wordpress customizer sections default 
Html :: show html 
Html :: How do I move my header to the right side in HTML? 
Html :: set value of input ype color in html 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =