Using the onChange configuration option, the following example asks for confirmation if deselecting an option.
onChange