Tagged Questions
0
votes
1answer
22 views
jQuery Validation plugin ignored elements get validated
I validate a form with tje jQuery Validation Plugin. If the browser supports the HTML5 datetime-local element I want that input not to be validated. Everything works fine, except that the elements ...
0
votes
1answer
26 views
jQuery Validate + JSONP cross domain remote validation
I have a problem using jQuery Validate and cross domain remote validation.
My scenario is:
PhoneGap mobile app
PHP scripts on remote server
jQuery 1.9.1
jQuery Mobile 1.4.2 as interface framework
...
-2
votes
1answer
21 views
I am trying to validate my form with jquery plugins but remove class Not working [on hold]
<script>
$(".form").validate({
//...
});
jQuery.validator.removeclass("classname", {remove});
</script>
-2
votes
1answer
27 views
jQuery Validate plugin custom method not working [duplicate]
<script>
$("#form").validate();
$(document).ready(function ()
{
var merror = '';
jQuery.validator.addMethod('mvalid', function(value, element) {
...
-1
votes
0answers
22 views
How we use removeclassrule in the give code for removing error class in jquery plugin [duplicate]
<script src="js/user.js"></script>
<script src="js/validation.js"></script>
<form id="form" class="frm">
Enter Your Name
<input type="text" name="name" id="name" ...
1
vote
2answers
41 views
The jquery validating the form fields but not submitting the form data to targeted file
I am trying to validate the contact us form using jquery and ajax, the form fields are validating successfully ,but the data not submitted to php file i.e contact_submit.php.
please give me ...
0
votes
0answers
12 views
does jquery validation plugin not work with input type number? [duplicate]
I'm using the jquery validation plugin and attempting to validate an <input type="number"/> to ensure it is a number since Safari Mobile doesn't support the standard HTML5 validations. It works ...
0
votes
1answer
26 views
jquery validate: validate a div
I need to validate with jQuery Validation Plugin a combobox component: jqxComboBox. This component is applied on a div. So defining
<div id="component_id" />
$( "#component_id" ...
1
vote
3answers
3k views
jQuery Validate checkbox checked required?
I'm using jQuery Validation plugin to validate a form.
The problem is that I can't find a way to validate if a single checkbox in my form is checked
HTML markup:
<label for="terms">terms : ...
31
votes
11answers
32k views
jQuery UI Dialog validation without using <form> tags
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ looks to be the best jquery validation plugin out there. I can't seem to get it working in the jQuery UI dialog though.
This code works ...
3
votes
2answers
641 views
Bootstrap 3 form using input-group-addon wrapping error labels with Jquery Validate
Using Bootstrap 3 with a form-horizontal using form-group and input-group tags with Jquery-Validate. When Jquery.Validate runs for errors, it appends a label error control within the input-group.
...
1
vote
1answer
47 views
JQuery Validation Plugin displaying “Please enter a value greater than or equal to 0.”
I am going crazy with this issue and I cannot seem to resolve it. I am using this plugin to validate a form on my site: http://jqueryvalidation.org/
This is my form:
<form action="#" ...
0
votes
1answer
534 views
Can't change default error message( jquery-validation plugin ) [duplicate]
I was using this post - jQuery validation: change default error message
Here is my js code, that I added to jquer.validate.min.js
jQuery.extend(jQuery.validator.messages, {
required: "",
remote: ...
1
vote
1answer
23 views
SubmitHandler jQuery Validate Submit Empty CkEditor [duplicate]
Hi I used jQuery Validation to validate my form before submit it.
And I intercept submit handler in this way:
<script type="text/javascript">
<![CDATA[
$(function() {
...
-2
votes
3answers
49 views
Adding and removing class rules in jQuery Validate
how we use addclassrules and removeclassrules in jquery plugin .
with an examples.
$('#form').validate({
});
if ($(this).attr("san") != "") {
jQuery.validator.addClassRules("san" , { required: ...
-3
votes
0answers
50 views
jQuery Validate for multiple fields having same name? [duplicate]
I have multile fields with same name e.g. (videoTag[]) and I want to validate all those fields.
Fiddle is FIDDLE
I Read This Question .But it fulfilled Half requirement only.
What I have is : ...
0
votes
1answer
315 views
Validating several fields with the same name using jQuery Validate
I have an HTML form that I'm processing with Perl CGI, like so:
<form action="process.cgi" id="main">
<input type="text" name="foo" class="required" />
<input type="text" ...
2
votes
4answers
4k views
Dynamically setting rules/messages objects for jQuery validation plugin
I'm sure there's a better way to implement this but can't figure it out. I have a form which has 2 fields at the top that are always required. I then have a series of tabs which load in different ...
3
votes
1answer
315 views
jQuery validation fails when using .element(element) within custom method
I have a custom rule that should check some dependencies by validating the other inputs this one depends on. When I do stuff like that validation for all other inputs seems to be ignored.
This one is ...
0
votes
2answers
40 views
Display only one error with jQuery Validation
I want to display one error message at the top, if validation fails. I don't want to use errorPlacement option. Instead I want to show the message in the Bootstrap alert.
Here is my HTML:
<form ...
0
votes
1answer
41 views
jQuery Validation Plugin - Validate every field remotely
I love this plugin (http://jqueryvalidation.org/) but I feel limited if I want to validate all fields remotely. I already have a php validation class and would like to use that.
Lets say I have ...
-1
votes
1answer
28 views
Validate name only with 'alphabets', 'spaces' and 'periods' in jQuery Validate plugin [duplicate]
I am using jquery.validate.min.js file for validations. I want to allow only alphabets, spaces and periods in the username field. How to show the message?
-6
votes
2answers
276 views
How can I validate a regular expresion using jQuery Validation plugin?
How can I validate a regular expression using jQuery Validation plugin? In this code we can validate the form using one jQuery plugin, "jQuery Validation" plugin but I don't know to validate regular ...
1
vote
2answers
6k views
jQuery validate not working properly
I need this validation to fire when the div button is clicked. If the validation is successful, I want it to alert "is good".
Unfortunately, although validation fires and all rules are checked, it ...
0
votes
2answers
49 views
how to stop postback or submit event for jQuery Unobtrusive validation
I am using jQuery Unobtrusive Validation and want to do few things before I submit the form.
I dont want to postback the form after successful validation, but instead want to show a success message to ...
0
votes
3answers
695 views
Placing jQuery Validate plugin messages in new line
I am using jQuery Validate.
It's all working as it should but the messages are displaying one beside the other when there are more that one.
I need the messages to display in their own line.
...
-2
votes
1answer
38 views
jQuery Validation plugin with two submit buttons?
I have one form with around 50 fields and two submit buttons, "SAVE" and "SAVE & SUBMIT".
If the user clicks "SAVE", then validate only some values, eg. field1, field2. When user clicks "SAVE ...
0
votes
1answer
20 views
Jquery Combobox + validation of underlying dropdown + jquery validation
I am developing an application in asp.net mvc and trying to do validation using jquery validation plugin.
I have a dropdownlist which is being converted to combobox using jQuery code here:
...
0
votes
0answers
14 views
Why different validate submit,got different style [duplicate]
I using jquery.validate to validate my asp.net page. but when i got use submit, i got a perfect validate style like pic1
but i need use button to save my data with ajax,so i try another way,like ...
0
votes
0answers
24 views
Possible to have JQuery Validation Subset?
I am using JQuery Validation to validate a form within a View in my MVC 5 application, the form looks something like the image below.
I have the JQuery validation working to validate the majority ...
1
vote
2answers
4k views
jQuery Validator Credit Card Number + Type Match
Trying to add a customer jQuery validator method that basically checks the card type and the credit card number for validity.
ie. If the type is MasterCard, if the card number doesn't start with 5, ...
33
votes
3answers
23k views
jQuery Validation plugin - Validating hidden inputs and not visible?
How would I validate hidden inputs and not visible text inputs with jQuery Form Validation plugin? The problem is, that I'm using auto-suggest plugin, which generates a hidden input for selected ...
0
votes
1answer
29 views
jquery remote validation modification
I have applied jquery remote validation. on success i have added an image against my textbox. but i want to remove that image once the other validation applies because i have applied multiple ...
0
votes
1answer
49 views
Custom clientside validation for required at least one in array
I have the following custom attribute that is used to validate if an array has had a value submitted:
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public sealed ...
0
votes
0answers
28 views
Jquery Validation: CSS (valid or error) does not initally show up IF I use the remote method
I'm using the remote method in the JQuery Validation plugin, to check if an email exists, which works fine. However, the css (.valid or .error) does not initially display after submit or re-submit.
...
2
votes
3answers
2k views
jQuery “Validation is not a function”
I'm using this jQuery validation plugin and getting the famous:
$("#Form").validate is not a function
when trying to validate in Firebug (and equivalent messages in all other browsers).
This ...
0
votes
1answer
17 views
jQuery validation quirk - blocking submit
My submit button is being blocked if my required field is triggered. If I fill it in, I have to click outside the input to validate the field again, thusly having to press submit twice.
Any ideas if ...
-1
votes
1answer
3k views
Pass jQuery validate error messages to a single box (div)
I've search a lot but still haven't figured it out... How do I pass various error messages to a single box (div) instead of highlighting them nearby the relative fields. Let's say, I've got 4 required ...
0
votes
2answers
43 views
jQuery form not validating
I am writing a basic form which requires validation. I cannot determine what I have missed that is causing the validation to be overlooked?
I have matched the tags but the ending tags at the bottom ...
0
votes
1answer
26 views
jQuery Validate - cannot submit form successfully more than once
I am trying to redo my Email Contact form using the jQuery Validate Plugin and AJAX inside the submitHandler. I found that it works, however, it only works once. After I try to resubmit the form, I no ...
0
votes
0answers
57 views
jQuery remote validation not working in ASP.net project
I can't seem to figure out how to trigger remote validation in my form. What I eventually need to do is verify that a value does not exist in our MySQL database before the user clicks on Submit so ...
-2
votes
0answers
19 views
additional-methods.js local file breaks slider with image
I have jquery, jquery-ui, jquery-validate, and additional-methods. When getting the additional-methods.min.js from CDN everything works fine. When loading from local file it breaks a slider with ...
3
votes
2answers
3k views
Validation plugin - Auto validate multiple forms on a page
Currently I need to validate every form like this:
$(document).ready(function () {
$('#admin_settings_general').validate({
rules: {
...
0
votes
1answer
1k views
invalidHandler setDefault ignored in $.validator call -jquery validation plugin
When I set up some defaults for the jQuery Validation plugin by calling the $.validator setDefaults method, the errorPlacement method runs fine, though the invalidHandler function is completely ...
-1
votes
2answers
23 views
is it possible to attach load event to a DIV using jquery “on” inside a dynamically loaded content [duplicate]
I am trying to setup validation using the $('#form').validate. most examples use document.ready for this. since my page is dynamically loaded I cant use document.ready.
Also most examples of ...
0
votes
1answer
20 views
jQuery validation: one radio button in any of several groups
I've got a form with three sets of radio buttons, let's say:
<input type="radio" name="answer_option1" value="1" id="ans_options1" />
<input type="radio" name="answer_option1" value="2" ...
1
vote
0answers
30 views
Jquery validation for a name along with class [duplicate]
I am taking the reference of This question and validating-several-fields-with-the-same-name for validating the page inputs. The difference between validating-several-fields-with-the-same-name and My ...
1
vote
2answers
76 views
Jquery Validation Don't work on Submit if Submit has some Code
I am using MVC Data Anotation with jquery validation for validating my form. It works perfectly on submit but if I write some code on submit click, it doesn't validate it. Why so? Where am I wrong? I ...
0
votes
1answer
19 views
Passing data to server in remote validation
Using jquery validation with remote on one of the fields. How do I send the data to the server of what the user entered into the field?
rules: {
"profile.userId": {
required: true,
...
0
votes
2answers
36 views
jQuery classname validation not working for dynamically generated text fields
I am facing a problem with jQuery Validation to validate the ajax (dynamically) generated text fields...
Here is the snippet of the HTML code
<form name="booking" id="booking" ...