How to popup a dialog when a checkbox is unchecked on webform? I have a checkbox in Webform. By default, the checkbox is selected. I'd like to popup a message dialogbox if the user uncheck the checkbox. How can that be done in Webform?
$('#checkbox-id').click(function(){
  if(!$(this).is(':checked')){
    alert('You unchecked the checkbox');
  }
});