The plugin doesn't support customizing event in that manner. But you
can always implement your own event handling, disabling the defaults
if they interfere, and trigger validation manually. Something like
this:

$("#dayfield").keyup(function() {
  if (this.value.length >= 2 && $(this).valid()) {
    $("#nextfield").focus();
  }
});

That assumes you've defined max=31 as a rule for dayfield elsewhere.

Details about the valid method are here:
http://docs.jquery.com/Plugins/Validation/valid

Jörn

On Mon, Sep 8, 2008 at 4:49 PM, casavecchio <[EMAIL PROTECTED]> wrote:
>
> Hallo,
>
> i would like to validate a formfield. Valid values are 01, 02 .... 31,
> like all possible days of a month.
>
> The field validation should start after blur (like default) and after
> the second sign was inserted(also in the first lazy-mode). When the
> values are valid, the next form field should be onfocus
> automatically.
>
> Is this a possible behaviour of the plugin? At this point i dont have
> an idea, how to start
>
> Thx in advance
> Boris
>

Reply via email to