I have a drop down list. In Jquery what is the event I would use when the user makes a selection.
The id of the dropdown is drp1
I tried the following but di
Use jQuery change event handler.
$("#ddrp1").change(function(){
//selection changed
alert(this.value);//this will give the selected option's value
alert($(this).find(':selected').text());//this will give the selected option's text
});
Alternative way to bind change event handler is.
$("#ddrp1").bind('change', function(){
});