<select onchange="getval(this);"> <option value="1">One</option> <option value="2">Two</option> </select> Run code snippet