68
votes
9answers
36k views

jQuery Validate - require at least one field in a group to be filled

I'm using the excellent jQuery Validate Plugin to validate some forms. On one form, I need to ensure that the user fills in at least one of a group of fields. I think I've got a pretty good solution, ...
33
votes
9answers
37k views

jQuery Validation plugin in ASP.NET Web Forms

I would really like use the jQuery Validation plugin in my ASP.NET Web Forms application (not MVC). I find it easier than adding asp validators everywhere and setting the control to validate field on ...
24
votes
10answers
30k 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 ...
22
votes
12answers
43k views

Using JQuery Validate Plugin to validate multiple form fields with identical names

I have a dynamically generated form with input fields with the same name (for example: "map"). I do not have the option of changing the field names or generating unique field names because the form ...
22
votes
3answers
13k 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 ...
15
votes
5answers
13k views

jQuery Validate Plugin - Trigger validation of single field

I've got a form that can optionally be pre-populated via facebook connect. Once a user connects, their name and email are automatically filled in. The problem is that this doesn't trigger the remote ...
14
votes
3answers
13k views

How do I use jquery validate remote validation on a field that depends on another field in the form? How can I trigger a jquery remote validation call even when the input field is unchanged?

I have a form in which I am using remote validation to check if an email address already exists in the database. However, the catch is that on this form, the user can select between several different ...
12
votes
9answers
10k views

jquery.validate plugin - how to trim values before form validation

I'm using the excellent jquery.validation plugin by Jörn Zaefferer and I was wondering whether there's a easy way to automatically trim form elements before they are validated? The following is a cut ...
12
votes
2answers
12k views

jQuery validator and a custom rule that uses AJAX

I read your reply regarding the jQuery validator where you outline a method to check a username against a value in a database. Ive tried implementing this method but no matter what is returned from ...
12
votes
7answers
12k views

Can I copy/clone a function in JavaScript?

I'm using jQuery with the validators plugin. I would like to replace the "required" validator with one of my own. This is easy: jQuery.validator.addMethod("required", function(value, element, param) ...
10
votes
3answers
10k views

Where can I find the hosted version of the jQuery Validation plugin?

Why is there not a reference to the hosted jQuery Validation Plugin anywhere? Can somewhere share the Google Code link?
10
votes
2answers
20k views

jQuery validate(); Only validate on click of one type of submit button

I have a quite perflexing problem that I have researched and come up blank; Scenario: I have a form, with the jQuery bassistance.de's validate() plugin (http://docs.jquery.com/Plugins/Validation). ...
10
votes
1answer
8k views

Display both summary and individual error messages using jquery validation plugin

I'm just wondering how can I display both individual error messages and summary for the jquery plugin, I actually found a similar question but it just reference some hooks I can use, but I'm not sure ...
9
votes
5answers
6k views

Twitter Bootstrap integration to ASP.NET MVC validation

How can I integrate ASP.NET MVC unobtrusive validation and Twitter Bootstrap? I want to have all those validation messages styles appropriately.
9
votes
4answers
8k views

Using jQuery validate plugin: onfocusout, onkeyup notworking as expected on production site

I am using jQuery Validate plugin v.1.9.0 it works very nicely. But I am facing this issue, once the user submits the form & if there are any errors, it correctly display error message. The ...

1 2 3 4 5 38
15 30 50 per page