therealwesfoster Posted May 30, 2008 Share Posted May 30, 2008 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 Quote Link to comment Share on other sites More sharing options...
haku Posted May 30, 2008 Share Posted May 30, 2008 object.firstChild.data Where 'object' is the option element you want to get the data from. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.