how to append something to javascript variable
<p>i have a <code>&lt;select&gt;</code> tag</p>

<p>i want redirect user onchange</p>

<p>i got an code and it works fine</p>

<p>the code is</p>

<pre><code>&lt;select onchange="if (this.value) window.location.href=this.value"&gt;
&lt;option value="&amp;s=1"&gt;1&lt;/option&gt;
&lt;option value="&amp;s=2"&gt;2&lt;/option&gt;
&lt;option value="&amp;s=3"&gt;3&lt;/option&gt;
&lt;option value="&amp;s=4"&gt;4&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>The problem here is :</p>

<p>The current link is: <code>http://anlink.com/page.php?categ=4&amp;subc=2</code></p>

<p>when i change option</p>

<p>i got redirected to <code>http://anlink.com/&amp;s=1</code></p>

<p>but i want it redirect to</p>

<pre><code>http://anlink.com/page.php?categ=4&amp;subc=2&amp;s=1
</code></pre>

<p>So, i want edit the javascript code to something like this</p>

<pre><code>if (this.value) window.location.href=
http://anlink.com/page.php?categ=4&amp;subc=2 + this.value
</code></pre>

<p>i did not try this code but i think it will fail</p>
