jQuery clear only one query string value
<p>I have a form on a page that can filter a results table and appends the filter on the url as a query string e.g. <code>/Search?Name=john&amp;Title=mr&amp;Location=</code></p>

<p>As you can see location was blank because nothing was passed for that query. So basically when the form submits it sends all queries and those that have values filter the results.</p>

<p>What I want to do is allow a user to clear a single query so for example say they decided to no longer filter by john but they would still want their other queries to remain so I can't just clear the whole query string.</p>

<p>Any ideas on how I could do this?</p>

<p>Each filter looks something like:</p>

<p><code>&lt;td&gt;&lt;input name="Name" type="text" /&gt; &lt;a class="clear"&gt;Clear&lt;/a&gt;&lt;/td&gt;</code></p>

<p>So I thought about something along the lines of:</p>

<pre><code>$('table.filter td').each(function (i) {

            $(this).children('a.clear').click(function (e) {

                e.preventDefault();

                // CLEAR ONLY THIS FILTER FROM THE QUERY STRING

                // SUBMIT THE FORM AGAIN WITH THE ORIGINAL QUERY STRING MINUS THE REMOVED FILTER VALUE
                });
});
</code></pre>
