<html> <body> <select onchange="alert(this.options[this.selectedIndex].value);"> <option value="value A">a</option> <option value="value b">b</option> <option value="value c">c</option> <option value="value d">d</option> <option value="value e">e</option> </select> </body> </html>