Change form action based on selection options?
<p>I have a form as follows:</p>

<pre><code>&lt;form id="myformid" name="myformname" method="get" action="form1.php" onsubmit="return checkDependant()"&gt;
&lt;fieldset&gt;
&lt;label&gt;Food:&lt;/label&gt;
&lt;select name="Foods" size="1" class="search_input" id="selectid"&gt;
&lt;option value=""&gt;Food Type&lt;/option&gt;
&lt;option value="Banana"&gt;Banana&lt;/option&gt;
&lt;option value="Apple"&gt;Apple&lt;/option&gt;
&lt;option value="Orange"&gt;Orange&lt;/option&gt;
&lt;option value="Pizza"&gt;Pizza&lt;/option&gt;
&lt;/select&gt;
&lt;/fieldset&gt;
&lt;input type="submit" name="searchname" id="searchid" value="" /&gt;
&lt;/form&gt;
</code></pre>

<p>The form should always be processed by form1.php except  if "Orange" is selected, then the form should be processed by form2.php. Can this be done using Javascript / JQuery?</p>
