JQuery On Select change assign value to variable and reload script
<p>Is it possible at all to be able to assign the selected value of a select and assign it to the variable of a script and re-run the script?</p>

<p>Here is my current code sample:</p>

<pre><code>&lt;select onchange="reload_script;"&gt;
  &lt;option value="123"&gt;Select 123&lt;/option&gt;
  &lt;option value="456"&gt;Select 456&lt;/option&gt;
&lt;select&gt;

&lt;div id="123"&gt;
    &lt;a href="http://same.com/index.do?n=152991"&gt;link title&lt;/a&gt;
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://some.com/"&gt;Link&lt;/a&gt;
&lt;/div&gt;
&lt;script language="javascript" type="text/javascript"&gt;
var code = '123' // &lt;-- THIS VARIABLE WOULD BE THE VALUE OF THE SELECTED DROPDOWN VALUE
&lt;/script&gt;
</code></pre>

<p>See: var code = '123' .... That's what's changed when the select box is changed ... then I would need the script to re-run...</p>

<p>Is this possible at all?</p>


