Say I have a form that has a dropdown for "country", "state" and "zip/
postal code"
Now, if you select "United States", both "state' and "zip/postal code"
are required, but if you select, "Argentina" only "zip/postal code" is
required, and if you select "vietnam" then nothing else is required.
Using this plugin, btw:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
I need to perform a custom action when it turns invalid.
Currently, I have this:
success: function(label) {
label.html("good").parent('div').removeClass('bad').addClass('good');
},
Ideally, I would just do:
failure: function(label) {
// set as text for I
I'm doing something similar to this example:
http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-callback
I have a date input field, and if you are under 13, it pops up another
field for parent's age.But unlike this example,I want the parent to be
required to be 18 or older.How
Hi Diego,
I think it's a nice plugin (just tested it, didn't look at code)
I think it might be better if you showed some "loading" indicator
somehow, while it's waiting to load the large images.
Other than than, good job on your first plugin!
On Oct 28, 12:04 pm, diego <[EMAIL PROTECTED]> wrot
For what it's worth, if you can think of a better (read: cleaner) way
to do what I'm currently doing, please let me know :)
On Oct 28, 11:26 am, Validatorian <[EMAIL PROTECTED]> wrote:
> I'm doing something similar to this
> example:http://docs.jquery.com/Plugins/
ck is just another method. In this case, I'd
> add a custom age-method
> (http://docs.jquery.com/Plugins/Validation/Validator/addMethod), and
> use that together with date and required.
>
> Jörn
>
> On Tue, Oct 28, 2008 at 11:49 PM, Validatorian <[EMAIL PROTECTED]> wrote:
7 matches
Mail list logo