title: jQuery validating all tabs on form submit
body: <p>Currently jQuery validation plugin, validates only selected tab. So to make all the tabs to be validated i introduced ignore attribute </p>
  
  <pre><code>$("form").validate({
  ....
   ....
  ignore:"ui-tabs-hide"
  });
  </code></pre>
  
  <p>But after giving this it validates even the hidden fields. Is there a way to validate fields on all tabs by ignoring only hidden fields on each tabs.</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;div id="tabs"&gt;
  &lt;%@include file="inc/tabsList.jsp" %&gt; &lt;!--has &lt;a&gt; link for each div --&gt;
  
  &lt;div id="fragment-1"&gt;&lt;%@include file="inc/tradeDetails.jsp" %&gt;&lt;/div&gt;
  &lt;div id="fragment-2"&gt;&lt;%@include file="inc/beneficiaryDetails.jsp" %&gt;&lt;/div&gt;
  &lt;div id="fragment-3"&gt;&lt;%@include file="inc/referenceDetails.jsp" %&gt;&lt;/div&gt;
  &lt;div id="fragment-4"&gt;&lt;%@include file="inc/summary.jsp"%&gt;&lt;/div&gt;
  
  &lt;div class="clear"&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>$(function() {
  var hiddenChevron;  
  var $tabs = $('#tabs').tabs();
  
  $("#fWdErrors_940").hide();
  
  $("#singleSpotForm").validate({
          rules: {
              'singleSpotRequestVO.entity.entityName' : "required",
              'singleSpotRequestVO.subEntity.entityName' : "required",                
              'singleSpotRequestVO.transactionType' : "required",
              'singleSpotRequestVO.tradeCurrencyId' : "required"
          },
          errorContainer: 'fWdErrors_940',
          errorClass: "errorMsgItemText",
          errorPlacement: function(error, element) {              
               error.appendTo( element.parent("td").last() );
          },
          invalidHandler: function(form, validator) {
              var errors = validator.numberOfInvalids();
              if(errors){
                  var message = validator.numberOfInvalids() == 1 ?
                          validator.numberOfInvalids() + " error " :
                          validator.numberOfInvalids() + " errors ";  
                  $(".failureErrCount").html( message );
                  $("#fWdErrors_940").show().focus(); 
              }else{
                  $("#fWdErrors_940").hide(); 
              }
  
          },
          onkeyup : false,
          ignore: "ui-tabs-hide"
  
  });
  })
  </code></pre>