I use jQuery form validation plugin. I have got a webpage with “save” button and tabs. there is a form in one tab. Here is code for “save” button.
$("#save").click(function(){
$("#optionalform").valid();
});
It validates form if the tab with “#optionalform” selected. If it is not selected validation doesn`t work.
What you need to do is specify that hidden elements should not be ignored:
The default for the ignore option is
':hidden'which includes all the elements of your form, except when that tab is visible.See it in action here: http://jsfiddle.net/ryleyb/NfmWW/