title: How to change the querystring when I submit my GET form using JQuery?
body: <p>Suppose that I have a simple form in my page like this :</p>
  
  <pre><code>&lt;form action="/properties/search" method="GET" id="form_search"&gt;
    &lt;p&gt;
      &lt;label for="price"&gt;Min price:&lt;/label&gt;
      &lt;input type="text" name="min_price" id="min_price"&gt;
    &lt;/p&gt;
    &lt;p&gt;
      &lt;label for="price"&gt;Max price:&lt;/label&gt;
      &lt;input type="text" name="max_price" id="max_price"&gt;
    &lt;/p&gt;
    &lt;p&gt;
      &lt;input type="submit"&gt;
    &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I submit my form, I have the following url :</p>
  
  <p><a href="http://.../properties/search?min_price=100000&amp;max_price=200000" rel="noreferrer">http://.../properties/search?min_price=100000&amp;max_price=200000</a></p>
  
  <p>I want to change this url to have :</p>
  
  <p><a href="http://.../properties/search?price=100000,200000" rel="noreferrer">http://.../properties/search?price=100000,200000</a></p>
  
  <p>To do that, I'm using JQuery and the <a href="http://plugins.jquery.com/project/query-object" rel="noreferrer">JQuery querystring plugin</a> :</p>
  
  <pre><code>$(document).ready(function() {
      $("#form_search").submit(function() {
          var querystring = rewrite_interval_qstring();
          // querystring equals "?price=100000,200000" -&gt; exactly what I want !
  
          // ???
      });
  });
  </code></pre>
  
  <p>How can I change (comment "???") the submit url ? I have tested the following instructions separately, but it does not work.</p>
  
  <pre><code>window.location = querystring;
  window.location.href = querystring;
  window.location.search = querystring;
  </code></pre>