Trigger change event when toggling a button.