Confirm Password validation using jQuery!

In this post I am writing a simple jQuery script to validate password and confirm password which usually requires in a registration page.

So what is the basic? All we have to do is to get the value of two fields ‘Password’ and ‘Confirm Password’ and compare the strings. If both are same it is valid or invalid, that’s it.

Let’s see the entire script:

I have written commands on required places so you can understand the script better.

For cleaner demo i have used Bootstrap for CSS. You can remove them and use your own styles.

See the demo is here:



Related Posts

Leave a Reply