[jQuery] [validate] Only required when something else is selected?

2008-10-18 Thread Validatorian
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.

[jQuery] Re: Only required when something else is selected?

2008-10-18 Thread Validatorian
Using this plugin, btw: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

[jQuery] Validate Plugin - On Error?

2008-10-27 Thread Validatorian
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

[jQuery] Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
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

[jQuery] Re: my first plugin

2008-10-28 Thread Validatorian
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

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
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/

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
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: