jQuery Validate Plugin - Trigger validation of single field

ryan picture ryan · Apr 29, 2010 · Viewed 101.3k times · Source

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 validation to check if the email already exists.

Is there a way I could call the validation on that field alone? Something like:

$('#email-field-only').validate()

would be idea. Searched through the docs with no luck.

Answer

Gregoire picture Gregoire · Mar 3, 2011

This method seems to do what you want:

$('#email-field-only').valid();