Rectangle 27 0

Django Jquery Dialog box when specific radio button selected?


$('#my-select-id').change(function(e){
    if(e.target.value === 'special') {
        displayDialog();
    }
});

You have to listen for the change event:

how about if you select a certain radio button?

i imagined this would only be for a dropdown box! thanks :)

Note