option onclick alternative
<p>Ok so I have a bit o' script that works in FF but not IE or chrome. The basic idea is that when you select one of the options from the drop down menu it will switch to another relevant option in the menu below. (it's in a paypal order form)</p>

<p>You can see it in action here - <a href="http://www.bizzaromatic.smappdooda.com/xtra/dvd.html" rel="nofollow">http://www.bizzaromatic.smappdooda.com/xtra/dvd.html</a></p>

<p>I figured out that FF will accept an onclick event in an option field but not IE or Chrome. Problem is now I can't figure out how to make the code work to select the right options. Any help would be great.</p>

<p>Added code</p>

<p>Javascript:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function displayResult()
{
document.getElementById("price").selected=true;
}
function displayResult2()
{
document.getElementById("dvd").selected=true;
}
&lt;/script&gt;
</code></pre>

<p>HTML</p>

<pre><code>    &lt;form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
&lt;input type="hidden" name="cmd" value="_s-xclick"&gt;
&lt;input type="hidden" name="hosted_button_id" value="HGJ99G982KAEL"&gt;
&lt;table&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type="hidden" name="on0" value="Select One"&gt;Select One&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;select name="os0"&gt;
    &lt;option value="DVD" onclick="displayResult2()"&gt;DVD $25.00 USD&lt;/option&gt;
    &lt;option value="DVD w/ 1 CCSB" onclick="displayResult()"&gt;DVD w/ 1 CCSB $35.00 USD&lt;/option&gt;
    &lt;option value="DVD w/ 2 CCSB" onclick="displayResult()"&gt;DVD w/ 2 CCSB $40.00 USD&lt;/option&gt;
&lt;/select&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type="hidden" name="on1" value="Options"&gt;Options&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;select name="os1"&gt;
    &lt;option value="DVD Only" id="dvd"&gt;DVD Only&lt;/option&gt;
    &lt;option value="Red/Green" id="price"&gt;Red/Green&lt;/option&gt;
    &lt;option value="Red/Yellow"&gt;Red/Yellow &lt;/option&gt;
    &lt;option value="One of Each"&gt;One of Each&lt;/option&gt;
    &lt;option value="Surprise Me"&gt;Surprise Me!&lt;/option&gt;
&lt;/select&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;br&gt;&lt;input type="hidden" name="currency_code" value="USD"&gt;
&lt;input type="image" src="http://www.bizzaromatic.smappdooda.com/xtra/images/dvd.jpg" border="0" name="submit" title="Buy the DVD"&gt;&lt;br&gt;&lt;font size=2&gt;Click to order&lt;/font&gt;
&lt;/form&gt;
</code></pre>
