1
2<select id="myselect">
3 <option value="1">Mr</option>
4 <option value="2">Mrs</option>
5 <option value="3">Ms</option>
6 <option value="4">Dr</option>
7 <option value="5">Prof</option>
8</select>
9
10<script>
11$( "#myselect option:selected" ).val();
12</script>
1$("select.your-select").change(function(){
2 $(this).children("option:selected").val();
3});
1$("select.country").change(function(){
2 var selectedCountry = $(this).children("option:selected").val();
3 alert("You have selected the country - " + selectedCountry);
4});