I use jQuery-Validation-Engine for validate a form, but I've a problem .... I've a form in a div divided into tabs and I set the validationEngine like this:
$(".test").validationEngine({validateNonVisibleFields: true});
On submit works fine both on fields in the active tab in the non-active .... but popup error of the fields in non-active tab is not aligned to the corresponding field.
The _calculatePosition function seems that ignore the real coordinates of the field-hidden to check...
Any suggestion?
Thanks to much
The fact that this question hasn't been properly answered yet is frankly a bit silly considering the simplicity of the solution. The easy (and civilized) way is to invoke validation every time the user switches tabs, and to do that, you simply set up your tabs as such:
If you have the following form that spans multiple tabs...
Then you set up the form and tabs like this:
The result is that the user cannot select another tab if the tab the user is currently on is not fully valid. Here is the JSFiddle demo: http://jsfiddle.net/g9yLL/36/
Cheers! :-)
I have solved the same problem using the validationEngine updatePromptsPosition method for each tab... Something like this: