Jump to content

Get OPTION innerHTML


Recommended Posts

I have a select:

<select name="name" onChange="function(this.value)">
<option value="0">zero</option>
<option value="1">one</option>
<option value="2">two</option>
</select>

 

But instead of the onChange getting the VALUE of the option (0, 1, 2, etc), I want it to get the innerHTML part (zero, one, two etc)

 

How can i do this?

 

Wes

Link to comment
https://forums.phpfreaks.com/topic/107924-get-option-innerhtml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.