title: Can not post the data after validation
body: <p>The code below are to validate a set of selectbox, however, it will not post and go to that post page after it pass the validation, how to fix it? I have added       return true; at the end but it seems not working, Thank you.</p>
  
  <pre><code>var $selects = $('form select[name^=select]'),
      values = [];
  
  $(':submit').click(function(e) {
    e.preventDefault();
    values = [];
    $($selects).each(function() {
        if($(this).val()) {
            values.push($(this).val());        
        }
    });
      if(!values.length) {
          alert('Please select all categories');
          return false;
      }
    if(values.length &lt; $selects.length || $.unique(values).length &lt; $selects.length) {
      alert('Please select all categories and be unique');
      return false;
    }
    return true;
  });
  </code></pre>