[Javascript] readout option and compare
Michael Borchers
borchers at tridem.de
Tue Sep 6 07:52:51 CDT 2005
i need to readout the option (not the value) in a select menu
and see if it contains a certrain string. f.e.:
<select name="myselect">
<option value="0">first option</option>
<option value="1">next option</option>
<option value="2">another one</option>
</select>
and then find out if the selected option f.e. contains the string "option"
(which would be true for value 0,1 but false for 2)
a little function, someone?
thanks
More information about the Javascript
mailing list