try this .. this is the easiest way.
<select name="selectmenu1" id="selectmenu1" onchange="selectvalue(this.value)> <option value="o1"> a </option> <option value="o2"> b </option> <option value="o3"> c </option> <option value="o4"> d </option> </select>
On the JavaScript side of the code there is ..
function selectvalue(value){ alert(value); }
source share