I want to perform an event when a button is clicked, as if it were checked, and perform another when that button is clicked again.
I want to perform an event when a button is clicked, as if it were checked, and perform another when that button is clicked again.
try this:
in this way