Horje
how to check confirm password in javascript Code Example
match password and confirm password in javascript if true then submit form
function onChange() {
  const password = document.querySelector('input[name=password]');
  const confirm = document.querySelector('input[name=confirm]');
  if (confirm.value === password.value) {
    confirm.setCustomValidity('');
  } else {
    confirm.setCustomValidity('Passwords do not match');
  }
}
how to check confirm password in javascript
<label>password :
  <input name="password" id="password" type="password" onkeyup='check();' />
</label>
<br>
<label>confirm password:
  <input type="password" name="confirm_password" id="confirm_password"  onkeyup='check();' /> 
  <span id='message'></span>
</label>
 Run code snippet




Html

Related
como limpar as informações de uma tabela html Code Example como limpar as informações de uma tabela html Code Example
as onclick delete this html tag Code Example as onclick delete this html tag Code Example
email verification template html Code Example email verification template html Code Example
markdown new page break Code Example markdown new page break Code Example
add favorite icon to website html Code Example add favorite icon to website html Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9