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, 2022 in JQuery by gaurav
• 23,260 points
2,803 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, 2022 by rajatha
• 7,680 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,840 points
4,628 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,840 points
2,349 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,840 points
6,482 views
+1 vote
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,840 points
2,069 views
0 votes
0 answers

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

I am getting an error in my ...READ MORE

May 7, 2022 in Java-Script by narikkadan
• 63,600 points
1,445 views
0 votes
1 answer

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

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

answered Jun 28, 2022 in JQuery by rajatha
• 7,680 points
16,536 views
0 votes
0 answers

jQuery Validate plugin not validating an element that's not a form input

I need to validate with jQuery Validation ...READ MORE

Aug 18, 2022 in Web Development by gaurav
• 23,260 points
1,841 views
0 votes
0 answers

jQuery Validate plugin not validating an element that's not a form input

I need to validate with jQuery Validation ...READ MORE

Aug 19, 2022 in Web Development by gaurav
• 23,260 points
507 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, 2022 in JQuery by rajatha
• 7,680 points
1,476 views
0 votes
1 answer

Jquery form submit validation

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

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