A little bit overkill iOS style toggle button.
JCS_Toggle togBtn = this.GetComponent<JCS_Toggle>();
// Check if the toggle is on or off?
bool isOn = togBtn.IsOn;
// Toggle the button.
togBtn.Toggle();
// Set interactable.
togBtn.Interactable = !togBtn.Interactable;