Change href parameter using jQuery
<p>How do I rewrite an href parameter, using jQuery?</p>

<p>I have links with a default city</p>

<pre><code>&lt;a href="/search/?what=parks&amp;city=Paris"&gt;parks&lt;/a&gt;
&lt;a href="/search/?what=malls&amp;city=Paris"&gt;malls&lt;/a&gt;
</code></pre>

<p>If the user enters a value into a #city textbox I want to replace Paris with the user-entered value.</p>

<p>So far I have</p>

<pre><code>var newCity = $("#city").val();
</code></pre>
