<form>
<SELECT NAME="sel" onChange="split(selected value)">
<OPTION VALUE=1>Milk</option>
<OPTION VALUE=2>tea</option>
<OPTION VALUE=3>water</option>
<OPTION VALUE=4>coffee</option>
</SELECT>
</form>
Hi i need to pass the selected value immediately on inside of this select tag so pls some one help me
You cannot pass the value directly to the handler but you can get the values in it, I’d recommend to do this in code and not use inline event handlers:
Here’s a working example:
http://jsfiddle.net/c2SrV/