6,750 questions
-2
votes
2
answers
59
views
Bootstrap 5.3.5 disable submit button doesn't work [duplicate]
I have the following form:
<form id="chatForm" name="chatForm" action="{{url_for('home.invoke')}}" method="post">
<div id="message-box&...
-1
votes
1
answer
40
views
Using the value of a checkbox in a jQuery Validation add method doesnt work [duplicate]
I am attempting to use the value of a checkbox on a form to control the validation of other fields. But it seems that the value is always false inside the addmethod routine. I must be doing something ...
0
votes
0
answers
18
views
Does JQuery Validator's form.validate() actually validate? [duplicate]
In the examples they all show calling something like this.
$('#myform').validate(
rules: {
myfield: 'required'
}
)
However, in my pages when that's all I call it doesn't actually validate the ...
-2
votes
2
answers
149
views
How to execute jquery validation to array of input elements [duplicate]
I have a dynamic list of inputs that gets name of the user. I need to validate, using jquery validate plugin. Below is my code structure.
Either jQuery validate does not support this array of ...
-1
votes
1
answer
43
views
How to focus or scroll to custom checkbox hidden element? [duplicate]
I have a custom card checkbox. I want to focus and scroll on form submit(form is being validated using jQuery validation) to this card checkbox if it(card checkbox) is required and not checked. How to ...
-1
votes
1
answer
37
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: {
...
0
votes
2
answers
55
views
How to validate array of array inputs Jquery? [duplicate]
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> ...
-1
votes
1
answer
53
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 ...
2
votes
1
answer
219
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 ...
0
votes
1
answer
900
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 ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
85
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 ...
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 ...
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 ...
-1
votes
1
answer
51
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('...