Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
-2 votes
2 answers
75 views

I have the following form: <form id="chatForm" name="chatForm" action="{{url_for('home.invoke')}}" method="post"> <div id="message-box&...
khteh's user avatar
  • 4,280
-1 votes
1 answer
47 views

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 ...
John P's user avatar
  • 95
0 votes
0 answers
26 views

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 ...
HisDivineShadow's user avatar
-2 votes
2 answers
154 views

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 ...
Alaksandar Jesus Gene's user avatar
-1 votes
1 answer
54 views

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 ...
TWF's user avatar
  • 43
-1 votes
1 answer
40 views

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
57 views

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
  • 2,008
-1 votes
1 answer
62 views

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
246 views

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
0 votes
1 answer
932 views

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
39 views

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
85 views

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

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
21 views

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
  • 137
-1 votes
1 answer
54 views

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
144 views

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
58 views

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
109 views

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
0 votes
1 answer
36 views

Ok, this works fine: $( "#myform" ).validate({ rules: { email: { remote: { url: "/ajax/check-email.php", mothod: "get", dataFilter: ...
Roberto's user avatar
  • 819
1 vote
2 answers
2k views

I have a form with a remote validation field. My Javascript is as bellow: $("#myform").validate({ rules: { mainfield: { remote:{ url: "checksnote....
Rohit S's user avatar
  • 548
0 votes
1 answer
119 views

I am using unobtrusive validation in asp.net core and have set a custom class in order to utilise the bootstrap CSS classes. This works nicely for client side validation, but the custom class is ...
Reafidy's user avatar
  • 8,479
0 votes
2 answers
735 views

I am having a lot of trouble trying to modify the errorClass and validClass with Jquery validation. I assume all I need to do is add the .validate function and set the parameters. Whilst the ...
Reafidy's user avatar
  • 8,479
-1 votes
1 answer
407 views

I used the following code to prepend an icon to the form validation error messages but when the user clicks on the form field and clicks away without fixing the field the icon disappears: ...
sah's user avatar
  • 137
0 votes
0 answers
327 views

I have an amount text field allowing the value as "1,232,454.23", maxlength="12" . Database size is NUMBER(9,2) and it works fine. When User tries to enter a number 123245444.23 (...
user3067524's user avatar
0 votes
0 answers
114 views

I've been searching similar questions, but I am having a hard time relating my setup with what I see in other questions. Maybe I am having a fundamental misunderstanding of the JQuery validation ...
Franklin's user avatar
  • 133
0 votes
0 answers
35 views

I want to ask if is_unique in CodeIgniter 4 is available in jQuery Validate? I'm trying to solve my coding problem which involves the is_unique validation from CodeIgniter 4. Here is sample of my code ...
me.theblackz's user avatar
0 votes
0 answers
777 views

I have a form with a date field. The field is required and should not allow a date sooner than 2 days from the current date. <input type="date" id="DayDate" name="DayDate&...
rwkiii's user avatar
  • 5,876
0 votes
1 answer
2k views

I am currently using validate.js to validate my form and choices.min.js as a substitute instead of using select in order for me to have a proper search bar on select. I am currently testing the ...
lawrence agulto's user avatar
1 vote
1 answer
1k views

<script> function submitAddStudent() { $("#modalForm").validate({ rules: { name: { required: true, letterswithspace: true }, email: { ...
Fawwash's user avatar
  • 33
0 votes
0 answers
23 views

when i submit form, adno field (number) not validate excluding empty my template.html <input name="adno" id="id_adno" type="number" class="form-control" ...
Ali's user avatar
  • 3
0 votes
0 answers
56 views

I have a form which contains four inputs (start/end and start/end time). I want to validate that end time should be greater than start time, if start and end dates are equal. For that I have a method ...
Denis's user avatar
  • 109
2 votes
1 answer
78 views

I have the following Jquery custom validation method : $('#save-event-challenge').off('click').on('click', function (e) { let $btn = $(e.target); jQuery.validator.addMethod('minTime', ...
Denis's user avatar
  • 109
1 vote
1 answer
102 views

I have jQuery validation library used on application, but when I validate before submit is not working. When inspect the element its said line 1 of this file below, need some help. $(function (){ $(&...
teddy107 Van Weit's user avatar
0 votes
0 answers
93 views

Form which has two checkboxes for agreement on different steps (first and last). First one is working totally fine, however the last step is not working properly. Here is html code <form method=&...
shishir kumar's user avatar
2 votes
0 answers
125 views

I have a website developed within ASP.NET Core MVC (.NET6) + jQuery, Bootstrap. Due to some restrictions, some navigation pages must be embedded dynamically by non-typical way using Ajax request. $....
Spring Elk's user avatar
0 votes
0 answers
185 views

Can't seem to get jQuery validate pluging to work with Typescript. This works: $(document).ready(function() { alert('hi') }) This gives a compilation error: ' Property 'validate' does not exist ...
Zixxy7's user avatar
  • 71
0 votes
0 answers
46 views

I have multiple forms inside table in each tr like this but when clicking on save validation is not working. I want to validate parent form of .save button. Does anyone know how can I do this? /// ...
Usman Ali's user avatar
0 votes
0 answers
30 views

Can I add the Jquery Validation to dynamic inputs? I have this sample below where I need it validate just the inputs without the placeholder. I am using keypress to get all the events of a input ...
Jefferson's user avatar
  • 123
0 votes
0 answers
443 views

if I give index in input array then only required working other validation not working <input type="text" name="batch_no[0]"> <input type="text" name="...
Santosh Chakraborty's user avatar
0 votes
1 answer
155 views

I'm working on a Django project involving the use of validating forms. I have my validation working, including all the rules I have applied, in one approach (the form is created when the page is ...
Franklin's user avatar
  • 133
-2 votes
1 answer
234 views

I try: regno: { required: true, maxlength: 20, noSpace: true } Can somebody assist me to validate text field that the beginning does not allow space?
Athira Anil's user avatar
0 votes
1 answer
242 views

I use an Ajax form (with JQuery Validation Plugin) on my site. It works except for the following problem: if I enter something in a text field and then click on the send button, the value is updated. ...
andre3000's user avatar
0 votes
1 answer
493 views

There's a way with JQuery validator to validate all the form, but do not validate a specific input? Here a Code Snippet example for this: jQuery.validator.setDefaults({ debug: true, ...
user20417316's user avatar
-1 votes
1 answer
400 views

I want to use custom form validation for my input fields. I want to display a custom message and make borders red of input fields. The problem is that I am unable to do this in jQuery. For Html, I ...
Eatsam ul haq's user avatar
0 votes
0 answers
19 views

I use jQuery Validate plugin with addMethod function. 1 field is using addMethod but it's not mandatory. However somehow that Percentage field is always validated even when there's no value. Please ...
sg552's user avatar
  • 1,553
0 votes
1 answer
86 views

There are similar threads on determining which Submit was clicked from submitHander(form): Jquery Validation, Get button clicked in submitHandler() Thanks to having form we can call an undocumented ...
gene b.'s user avatar
  • 12.6k
0 votes
1 answer
81 views

I'm trying to validate attachment field, below code is working but when i use async false attachment:{ required:{ depends: function () { var ...
user3653474's user avatar
  • 3,872
0 votes
0 answers
49 views

I encounter a problem related to the use of the EntityType with the extended and multiple set to true (which generates checkboxes) and then validating each field separately (required or not) using the ...
alexcm's user avatar
  • 171
0 votes
0 answers
303 views

I have a form with many fields with the same name, this will be an array input for PHP. <input type="text" name="user[]" required /> Unfortunately it seems that Jquery ...
Tobia's user avatar
  • 9,599
1 vote
0 answers
137 views

With the addition of form associated web components, we are now able to write custom web components that act as a form item when placed inside a form. I am wondering if it is possible to use jQuery ...
Tony's user avatar
  • 612

1
2 3 4 5
135