title: Ignoring jquery validation for hidden blocks(div's)
body: <p>I'm developing a CodeIgniter application in which I have a form with multiple blocks, which have common or different fields. 
  I have a select box and on selecting an option I'll enable/disable blocks(div's). One block will be visible at a time. I'm using jquery validation plugin to validate the form. I'm facing issues when I try to submit the form due to hidden block's mandatory fields. Can anybody tell me how can I solve this problem</p>
  
  <pre><code>$("#form").validate({
         ignore: [],
         rules:{
                 company:{
                      required:true
                },
                location_name:{
                      required:true
                 },
                 address:{
                     required:true
                 },
                  city:{
                    required:true
                   },
                   pincode:{
                  required:true
              },
              sender_name:{
                  required:true,
                  minlength:3,
                  maxlength:50,
                  firstletter:true
              },
              email:{
                   required:true,
                   email:true
              },
              mobile_num:{
                 required:true,
                 minlength:10,
                 mobvalid:true
              },
              phone_num:{
                 minlength:10
              },
              state:{
                  required:true
              },
              type_of_sample:{
                  required:true
              },
              manufacturer_id:{
                  required:true
              }
            },
    messages:{
          company:{
              required:"Please select company name"
          },
          location_name:{
              required:"Please select the location"
          },
          address:{
              required:"Please enter the address"
          },
          city:{
              required:"Please enter the city"
          },
          pincode:{
              required:"Please enter the pincode"
          },
          sender_name:{
              required:"Please enter firstname",
              minlength:"Please enter atleast 3 characters",
              maxlength:"Maximum 50 characters allowed"
          },
          email: {
              required:"Please enter the email address",
          },
          mobile_num:{
              required:"Please enter mobile number",
          },
          state:{
              required:"Please select the state"
          },
          type_of_sample:{
              required:"Please select the type of sample"
          },
          manufacturer_id:{
              required:"Please select any manufacturer"
          }
    },
    submitHandler: function(form) {
           form.submit();
       }
   });
  </code></pre>
  
  <p>Here manufacturer_id is in the hidden block which prevents me from submitting the form. Please help me out. </p>