<select name=
"age"
onchange=
"selectAge()"
>
<option value=
"20"
>20</option>
<option value=
"21"
>21</option>
<option value=
"22"
>22</option>
<option value=
"23"
>23</option>
</select>
<script type=
"text/javascript"
>
function
selectAge(){
var
s1 = document.getElementsByName(
"s1"
)[0];
alert(
'you choice:'
+ s1.value);
}
</script>