$('#selectbox').val()
Lets see how to write this with on change event
$('#selectbox').change(function(){
alert($(this).val());
});
Lets see how to get the selected text (not the value)
$('#selectbox').change(function(){
alert($('#selectbox :selected').text());
});
No comments:
Post a Comment