In this section, we am going to see how you we easily validating HTML5 default validation for confirm the password. Generally in HTML5 when we create a form we simply write “required” attribute to the form element and it starts validating itself without other javascript code. But for confirm password validation we would required to add few lines of code that will set the validation in the default way.
HTML
JAVASCRIPT
var password = document.getElementById("password") , confirm_password = document.getElementById("confirm_password"); function validatePassword(){ if(password.value != confirm_password.value) { confirm_password.setCustomValidity("Passwords Don't Match"); } else { confirm_password.setCustomValidity(''); } } password.onchange = validatePassword; confirm_password.onkeyup = validatePassword;
I like your plugin named share on whatsapp for my wordpress site, thank you so much sir.
ReplyDeleteIshika@GB
@Ishika- Thank you.
ReplyDeleteAre you looking for GBwhatsapp Apk? then click here to Download
ReplyDeleteThanks for sharing the information. Whatsapp Plus Apk 2020
ReplyDeletehow to train your dragon 3
ReplyDeleteI was looking for it and here i found similar to this ...Peace in home
ReplyDelete