I isn't possible to define options when calling validate
. The only solution I can think of is to use something like this:
var myForm = $("form");
myForm.validationEngine('attach', {promptPosition : "topLeft"});
// other js...
// when you want to validate the form use:
myForm.validationEngine('validate');
You set the desired options when "attaching" the validation engine. You then trigger the validation manually. To prevent the validation getting triggered by the user just use a button
instead of input type="submit"
.
Here's a demo of what I'm trying to explain: http://jsfiddle.net/jxWp8/2/