Reputation: 1261
How would you get the selected radio button, and if it is a specific option display a dialog box with a message to the user?
Upvotes: 0
Views: 480
Reputation: 4459
You have to listen for the change event:
$('#my-select-id').change(function(e){
if(e.target.value === 'special') {
displayDialog();
}
});
Upvotes: 1