need a script to split and assign values Jquery
<p>I am trying to separate and reassign values in a variable. What I have is </p>

<pre><code>#&amp;first=1&amp;second=2
</code></pre>

<p>can anyone help with a script that will separate and assign this values to another variable so it would be like</p>

<pre><code>var first= val.(first);
var second= val.(second);
</code></pre>

<p>I am new to jquery so I am not even sure if I am using the correct syntax.</p>

<p>Thanks</p>
