Jquery validation rules after submit checking retype-password first only if we type mismacth password in both fields other fields are empty

0 votes

enter image description hereI am using "jquery validation rules"

my jquery validation rules working fine during blur & tab.. but problem is.. after click on submit, its giving first preference to check password & confirm password.. then it goes to validate another fields.. how can i solve this?

screenshot is of during on click of submit button.. after clicking on submit.. its giving first preference to confirm-password check instead of sequencial check.. why its happening

after click on submit.. it should validate from top to bottom fields.. but its validating confirm-password field first

for form validation, but during validation check its checking "retype-password" means "equalTo" attribute first (only if we type mismacth password in both fields & other fields are empty)

Its checking "retype-password" first.. then checks other fields..

I want to validation checking preferences as per form field positions

Jun 13 in JQuery by gaurav
• 12,980 points
17 views

1 answer to this question.

0 votes

We need to validate a password every time whenever a user creates an account on any website or app. So, we have to verify a valid password as well as put the confirm password validation. For a valid password, the following parameters must be contained by it to be valid -

  • A password should be alphanumeric.
  • First letter of the password should be capital.
  • Password must contain a special character (@, $, !, &, etc).
  • Password length must be greater than 8 characters.
  • One of the most important that the password fields should not be empty.
answered Jun 13 by rajatha
• 4,060 points

Related Questions In JQuery

0 votes
1 answer

How to check if button is disabled in jQuery Mobile?

Hello, you can try $("#deliveryNext").is(":disabled") The following code works for ...READ MORE

answered May 29, 2020 in JQuery by Niroj
• 82,720 points
2,074 views
0 votes
1 answer

How do I check if the mouse is over an element in jQuery?

Hello @kartik, Use this code: $("someelement").mouseenter(function(){ ...READ MORE

answered Oct 5, 2020 in JQuery by Niroj
• 82,720 points
893 views
0 votes
1 answer

How do I check if file exists in jQuery or pure JavaScript?

Hello @kartik, With jQuery: $.ajax({ url:'http://www.example.com/somefile.ext', ...READ MORE

answered Oct 5, 2020 in JQuery by Niroj
• 82,720 points
3,636 views
0 votes
1 answer

How to check if a jQuery plugin is loaded?

Hello @kartik, for the plugins that doesn't use ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,720 points
698 views
0 votes
0 answers
0 votes
1 answer

Jquery validation plugin - TypeError: $(...).validate is not a function

The "$(...). validate is not a function" ...READ MORE

answered 9 hours ago in JQuery by rajatha
• 4,060 points
29 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,510 points
293 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'msie' of undefined - jQuery tools

Hello, Use the following script tag in your ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,720 points
8,283 views
0 votes
1 answer

jQuery Validation plugin. Two custom rules not working

validation plugin works according to the name attribute and ...READ MORE

answered Jun 20 in JQuery by rajatha
• 4,060 points
13 views
0 votes
1 answer

Jquery form submit validation

Bind a function to the submit event of the ...READ MORE

answered Jun 20 in JQuery by rajatha
• 4,060 points
7 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP