I want to attach an click event to a button element and then later remove it, but I can't get unclick() or unbind() to do anything. In this example below, the button is tan and the click event works.
window.onload = init;
function init() {
$("#startButton").css('background-color', 'beige').click(process_click);
$("#startButton").css('background-color', 'tan').unclick();
}
How can I remove events from my elements?