Skip to main content

Questions tagged [jquery-validate]

The jQuery Validate plugin is a jQuery plugin by Jörn Zaefferer. Its purpose is to perform client-side form validation of user entered data.

-1 votes
1 answer
24 views

Using sub rules via Jquery Validation data-rule attributes

Referenece: https://github.com/pes10k/jquery.validate.file/blob/master/jquery.validate.file.js $("#upload_form").validate({ rules: { example_file: { ...
Learner's user avatar
0 votes
2 answers
34 views

How to validate array of array inputs Jquery?

How do we validate array of array input boxes using jquery validation plugin? Below is html code. <form id="transport-form"> <div class="form-group> <label> ...
B L Praveen's user avatar
  • 1,966
-1 votes
0 answers
24 views

google recaptcha with jquery validate issue [duplicate]

in this code when you click submit I get alert : Error then I get successfully recaptcha response that means the form submitted 2 time on one click the first get the error and reset,execute ...
Jimmy Jhon's user avatar
0 votes
1 answer
39 views

Is it incorrect to add the same JQuery Validate rule twice to a dynamic field and is it detrimental?

I have a large number of dynamic cloned fields on a form. The fields are cloned groups. Every time I add a clone I use a wildcard selector to allocate the rules to all the fields in the DOM. $(...
arresteddevelopment's user avatar
-1 votes
1 answer
40 views

Dynamically added Select 2, Jquery Validations doesn't work [duplicate]

I'm developing a form for users to add multiple items to their cart and need to validate that none of the fields are left empty. I'm utilizing the Select2 plugin and Jquery Validator and jQuery for ...
Rahul Roy's user avatar
2 votes
1 answer
67 views

JQuery Validation conditions for Italian Fiscal Code and VAT number

I'm using the Jquery Validation plugin for my registration form. Users should enter an Italian VAT number ONLY if the company field is filled in, otherwise they should fill in the CF field. At the ...
user2505596's user avatar
-1 votes
1 answer
380 views

How to trigger my custom validation method from validate() or valid() [duplicate]

I can validate my form by calling $form.validate() and $form.valid(). And so presumably these functions are called automatically when submitting a form. But my question is: If I have a custom ...
Jonathan Wood's user avatar
0 votes
0 answers
35 views

JQuery Validate: custom rule triggering on specific events [duplicate]

I would like to add a custom rule to jQuery Validate that allows me to do a check and some specific actions according to the event triggering it. For example for an email, after the 1st submit of the ...
Gugusteh's user avatar
  • 128
0 votes
1 answer
78 views

jQuery Validation custom method

I'm building a form using Google Places API and jQuery Validation. I have a field for the user to populate an address and I need to force him to select an address from the Google Places API ...
tsvetko.krastev's user avatar
0 votes
0 answers
19 views

Default Browser Date Validation Suppressed with Jquery Validation [duplicate]

Our team is running into an issue with our date picker. We've a site we made with razor pages and bootstrap 5 and we have a form with a date picker. The date isn't a required field, so we have it as ...
klambert2's user avatar
0 votes
0 answers
19 views

JQuery conditional validation for one of two inputs [duplicate]

I have a form that allows for searching by name if they user clicks the id='SearchName' radio. I currently have it set so that both the first name and last name are required if the person selects that ...
Miranda's user avatar
  • 79
-1 votes
1 answer
41 views

jQuery Validate trigger only one custom method

How to trigger only one specific custom validation? Let's say I have three custom validation methods: $.validator.addMethod('customValidation1', function (data) { }, 'Error'); $.validator.addMethod('...
Max's user avatar
  • 1
0 votes
0 answers
105 views

jQuery validator custom "greater than" rule [duplicate]

I'm trying to use a custom validation rule with jquery.validator. In the form there are 2 text fields 'startdate' and 'enddate', containing date strings (using jquery.ui datepicker). The date in the '...
Andreas74's user avatar
0 votes
1 answer
54 views

jQuery validate — Require one specific selection which has a particular data attribute

I am trying to figure out how to validate a specific scenario with jQuery validate. The user must select at least one user from a group of users, but each user in the list has a data attribute ...
Tony Beninate's user avatar
0 votes
1 answer
98 views

jQuery validate custom remote method fired just one time [duplicate]

I created a custom method which remotely checks the validity of the email returning different messages based on two cases. I works just the first time the validation started, if I change the input ...
Frank Vèssia's user avatar

15 30 50 per page
1
2 3 4 5
451