Hi
I have a page (it is actually an rrd-cgi based page) where I want to process 2 different sets of code based on a user's selection from a combo box.
How can I do this in javascript? I need something like
<select name="example" size="1" onChange="content=this.options[this.selectedIndex].value">
<option value="1">one</option>
<option value="2">two</option>
if content=1 then <Do this code>
else <do that code>
How can I do this? I cannot seem to get anything to work
Thanks
I have a page (it is actually an rrd-cgi based page) where I want to process 2 different sets of code based on a user's selection from a combo box.
How can I do this in javascript? I need something like
<select name="example" size="1" onChange="content=this.options[this.selectedIndex].value">
<option value="1">one</option>
<option value="2">two</option>
if content=1 then <Do this code>
else <do that code>
How can I do this? I cannot seem to get anything to work
Thanks