title: Validation of bootstrap-select using Jquery Validate plugin
body: <p>I am facing problem to validate select which is beautified using bootstrap-select.js plugin using jquery validate plugin. bootstrap-select.js is expecting class selectpicker and following one line of code:</p>
  
  <pre><code>$('.selectpicker').selectpicker();
  </code></pre>
  
  <p>for beautifying select of html.</p>
  
  <p>However it is causing problem in validations using jquery validate plugin. The select in not at all validated unless and untill class selectpicker in not removed. Once class is removed then validations are properly performed.
  Following is my html for select:</p>
  
  <pre><code>&lt;select class="input-medium required" id="editCategory_sltCategoryName"
  name="editCategory_sltCategoryName"&gt;
      &lt;option value=""&gt;
          Select Category
      &lt;/option&gt;
      &lt;option&gt;
          Reusable Components
      &lt;/option&gt;
      &lt;option&gt;
          BU Connects
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and following is the js:</p>
  
  <pre><code>$('#frm_editCategory').validate({
      rules: {
          editCategory_sltbuName: {
              required: true
          },
          editCategory_sltCategoryName: {
              required: true
          },
          editCategory_categoryName: {
              minlength: 2,
              required: true,
              buname: true
          },
          editCategory_categoryDescription: {
              minlength: 2,
              required: true,
              buname: true
          }
      },
      highlight: function(element) {
          $(element).closest('.control-group')
              .removeClass('success').addClass('error');
      },
      success: function(element) {
          element.text('OK!').addClass('valid')
              .closest('.control-group')
              .removeClass('error').addClass('success');
      },
      submitHandler: function(event) {
          return true;
      }
  });
  </code></pre>
  
  <p>I have tried to do it by writing custom method for it also but it is of no use.</p>