Add radio buttons (with the same attribute name) to the #confirmDialog div. Then you can get the selected value using the OK button:
'OK': function() {
value = $(this).find('input:checked').val();
$(this).remove();
},
Note that you get the value before deleting the dialog. And you must define var valueoutside the function.
source
share