title: Filter Form Parameters Before Submitting
body: <p>Is there a way to check the parameter if its empty or not before submitting?</p>
  
  <pre><code>&lt;form method="GET"&gt;
      &lt;input name="param1" value="test"/&gt;
      &lt;input name="param2" value=""/&gt;
      &lt;input type="submit" name="" id="search-submit" class="button" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If i have a form something like this. the param2 is empty so when I press submit, it look like this</p>
  
  <pre><code>link.com?param1=test&amp;param2=
  </code></pre>
  
  <p>so is it possible to attain something like this that when a param is empty. it should not be included.
  like</p>
  
  <pre><code>link.com?param1=test
  </code></pre>
  
  <p>since the param2 is empty</p>