Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Validate Plugin - Trigger validation of single field

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.

like image 221
ryan Avatar asked Apr 29 '10 16:04

ryan


1 Answers

This method seems to do what you want:

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

Edit

API has changed, see Paul's answer.

like image 198
Gregoire Avatar answered Oct 10 '22 21:10

Gregoire