Validate Password input filed using javascript | javascript lecture 7 | how to do this

preview_player
Показать описание
Learn how to create a password validation form with CSS and JavaScript.
Step 1:-Create A Password Validation Form
Note: We use the pattern attribute (with a regular expression) inside the password field to set a restriction for submitting the form: it must contain 8 or more characters that are of at least one number, and one uppercase and lowercase letter.
Step 2) Add CSS:
Style the input fields and the message box:
Step 3) Add JavaScript:

password and confirm password:-

show and hide password:-

please subscribe us for your support🙏.How To Do This

Watch carefully . If you have any question then comment below or

join us on Facebook:-

Send task at:-

Good luck

#javascript #howtodothis #PasswordValidation
Рекомендации по теме
Комментарии
Автор

Like, Share,Subscribe and Follow me for any query on Instagram

arbnstudios
Автор

Hi Sir,
Thank you for the video, However would you mind to share on how to validate if we want the password
1. length between 8 and 20 characters
2. have special characters?

I tried if ((x.value.length >= 8) || (x.value.length <= 20)) but not working. Still show green color after 21 characters. Or should i just separate it?

kvampie
welcome to shbcf.ru