title: How do I use jQuery's form.serialize but exclude empty fields
body: <p>I have a search form with a number of text inputs &amp; drop downs that submits via a GET. I'd like to have a cleaner search url by removing the empty fields from the querystring when a search is performed.</p>
  
  <pre><code>var form = $("form");  
  var serializedFormStr = form.serialize();  
  // I'd like to remove inputs where value is '' or '.' here
  window.location.href = '/search?' + serializedFormStr
  </code></pre>
  
  <p>Any idea how I can do this using jQuery? </p>