slimshady
11-05-2003, 02:28 PM
Hi,
I have a pull down box just normal HTML without any javascript
like this
<select>
<option value="www.tmf.nl">tmf</option>
<option value="www.radio.nl">radio</option>
<option value="www.tv.nl">tv</option>
</select>
I have a script working inside it that if one option is selected it automatticly launches a function but the problem is the function is connected and depending on the selected value of the pull down.
what i need is a way to launch a function when option tmf is selected and launch another function when radio is selected
so what i mean is something like this(below code is my fantasy of what i mean it does not work)
<select OnChange="launch(this.form)>
<option value="www.tmf.nl">tmf</option>
<option OnClick="document.form.url.value=radio value="www.radio.nl">radio</option>
<option value="www.tv.nl">tv</option>
</select>
I have a pull down box just normal HTML without any javascript
like this
<select>
<option value="www.tmf.nl">tmf</option>
<option value="www.radio.nl">radio</option>
<option value="www.tv.nl">tv</option>
</select>
I have a script working inside it that if one option is selected it automatticly launches a function but the problem is the function is connected and depending on the selected value of the pull down.
what i need is a way to launch a function when option tmf is selected and launch another function when radio is selected
so what i mean is something like this(below code is my fantasy of what i mean it does not work)
<select OnChange="launch(this.form)>
<option value="www.tmf.nl">tmf</option>
<option OnClick="document.form.url.value=radio value="www.radio.nl">radio</option>
<option value="www.tv.nl">tv</option>
</select>