Use either JavaScript or jQuery for this.
Using JavaScript
<script>
function val() {
d = document.getElementById("select_id").value;
alert(d);
}
</script>
<select onchange="val()" id="select_id">
Using jQuery
$('#select_id').change(function(){
alert($(this).val());
})