title: Is it possible not to pass some form fields in GET request?
body: <p>I have a form with some input texts passed in GET, and i don't want to have in GET all the fields; i want to avoid empty fields.</p>
  
  <p>So, a concrete example for:</p>
  
  <pre><code>&lt;form method="GET" action="an_url"&gt;
      &lt;input type="text" name="field1"/&gt;
      &lt;input type="text" name="field2"/&gt;
      &lt;input type="text" name="field3"/&gt;
      &lt;input type="submit" value="submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I supposed that fields disabled by html attribute "disabled" shouldn't be passed to GET.</p>
  
  <p>So i have done a js (based on jquery) to disable empty fields on submit, something like this:</p>
  
  <pre><code>$("form").submit(function() {
      $(this).find("input[type=text]").each( function () {
          if (!$.trim($(this).val())) {
              $(this).attr("disabled", "true");
          }
      });
  });
  </code></pre>
  
  <p>However, this doesn't work. Any ideas?</p>