All Questions
Tagged with jquery validation
8,821
questions
-4
votes
0
answers
31
views
JavaScript Validation regex to allow only alphabet text or alphanumeric only [duplicate]
I need Javascript validation regex to allow only alphabet text or alphanumeric only.
Example -
dGgs1s23 - valid
12fUgdf - valid
abchfe - valid
ABFGC - valid
121232 - invalid
abd()* - invalid ...
0
votes
2
answers
69
views
TypeScript: How to validate input fields with form checkboxes
I have a form with several checkboxes and corresponding input fields.
<div class="group-wrap input-element" id="gr_">
<div class="label-bar">
<label&...
-2
votes
1
answer
48
views
Input type date, differentiate between empty and invalid [closed]
I have a modal window with a form containing an optional field of type date i.e.:
<input id="myDate" type="date" />
If I pick a date, i.e. 14/05/2024, and then remove some ...
0
votes
0
answers
16
views
How can I combine field-specific validation and count valid fields on submit?
Trying to apply some odd validation rules to a simple form using jquery validator. There are 3 text fields and 2 select fields. In order to submit the form the user must enter data in and/or select ...
0
votes
1
answer
615
views
jQuery.Deferred exception: Cannot read properties of undefined (reading 'settings')
I am trying to apply a simple rule on form input. But when i am loading the page it throwing this error.
When i tried to add rules on form by name, it was working fine.
$(document).ready(function(...
0
votes
2
answers
121
views
Prevent user for adding any script/jquery/sql queries in the description field
I am trying to add some validation for the description field to check if the user has entered any scripting/js/jQuery/SQL query code rather than a genuine product description.
// Check for disallowed ...
0
votes
2
answers
154
views
Allow special characters and spaces in text field
I have this text field where allowing only characters
I want to allow special characters and space in the same onkeypress event.
<input maxlength="30" class="form-control" type="text" ...
-1
votes
3
answers
306
views
How to add form validation to a modal in ASP.NET MVC?
I need to create a form in a modal which has a required field. The user must only be allowed to submit the form once the required field is filled and if it is empty an error message must be displayed. ...
-1
votes
1
answer
61
views
Jquery validation with data-site-key and secret-key
I have the following problem
When I use jquery validation the captcha checking does not work
What could be the reason
Then if I try to display:
console.log("Value ", recaptchaResponse);
I ...
0
votes
0
answers
16
views
How can I validate that the src of an image is set using Jquery Validator
I am using Jquery Validator for Validation (https://jqueryvalidation.org/)
I'd like to add a custom validator to ensure that an image has its src set.
I've added this custom validator when the ...
0
votes
0
answers
31
views
jquery validationEngine Cannot read properties of undefined reading 'left' Uncaught TypeError
I am using if ($("#Demoform").validationEngine('validate')) {} inside jquery click function $("#add_msg").click(function() {
Demoform is the id of the form
add_msg is the id of ...
0
votes
1
answer
75
views
Validating billing address form using jquery plugin before payment
I have HTML form for billing address and created unique ID for each form field, but problem its not validating correctly, it must first check when fields are empty before proceed to next page. Below ...
1
vote
1
answer
79
views
How to get validation result?
I use jQuery validator plugin from this link :
https://www.jqueryscript.net/form/instant-input-validation.html#google_vignette
Everything works fine, but when I press submit button, I want get result ...
0
votes
1
answer
30
views
Jquery DatetimePicker desired format is lost. The 'seconds' part is missing
Context: Helping out a co-worder fix a bug. He also did not write this code. Current code is a merge of 2 developers code. Both are not available any more.
Initially the date time picker loads and ...
0
votes
0
answers
32
views
Difficulty with Client-Side Validation for Dynamically Added Fields in ASP.NET MVC
I'm working on an ASP.NET MVC project where I'm dynamically adding input fields to a form using JavaScript. I've integrated the jQuery Validation plugin and jQuery Unobtrusive Validation to handle ...