Is it possible to get an option's text and value?
How can the following non-working example work?
Goal: alert with the option's value and text
Thanks
How can the following non-working example work?
Goal: alert with the option's value and text
Code:
<select name="test" onclick="alert(this.value+', '+this.text);">
<option value="1">One
<option value="2">Two
</select>
Thanks