There is no plugin method for that, but you can use the validator
check method directly:

var validator = $("#myform").validate();
var result = validator.check("#myelement");

That still has side effects on the internal validator state, but that
shouldn't be a problem.

Let me know if that helps.

Jörn

On Fri, Sep 12, 2008 at 9:59 AM, boermans <[EMAIL PROTECTED]> wrote:
>
> How would I check if the value of a given text field is valid
> according to the rules specified with the Validation plugin (returning
> true or false) without triggering validation?
>
> Like using validation().element(el) or $(el).valid() - purely for the
> returned boolean - without the error message showing if it is invalid.
>
> I do not wish to remove the error message altogether, rather I am
> looking for a way to test the validation of the field without setting
> it's validation state as far as the plugin is concerned. Leaving me
> free to trigger visible validation checks independently.
>
> +++++
>
> In this specific scenario I am using the typewatch plugin <http://
> www.dennydotnet.com/post/TypeWatch-jQuery-Plugin.aspx> to store/apply
> the values of text fields as the user types. There is no form
> submission. To prevent an invalid value being applied by the typewatch
> callback I hoped to include a validation test. This works but displays
> the error message well before the user is likely to have completed
> typing their email address. I would instead prefer to trigger the
> visible Validation test on blur.
>
> Any suggestions for alternative approaches are very welcome!
>
> Thanks in advance
> Ollie
>

Reply via email to