Hi All,

I can't seem to get the right value with regards to a user selection. Basically I have a select list where onchange I want to extract the value of the option chosen.

For example my select list:

<select name="users" id="users" onchange="user_detail(this.options[this.selectedIndex].value)">
<option val="" SELECTED>Select Below</option>
<option val="4" >test test : (john)</option>
<option val="7" >test test : (testsdsdvvv)</option>
<option val="9" >sssdss sssdss : (passy)</option>
<option val="2" >Smith Smith : (Smith)</option>
The value of 'this.options[this.selectedIndex].value' is giving the element value as in 'test test : (john)' rather than the val 4?

Can anyone point me in the right direction with this?

Thanks in advance.