1$("#click-button").on('click', firstClick)
2
3function firstClick() {
4 alert("First Clicked");
5 $("#click-button").off('click').on('click', secondClick)
6}
7
8function secondClick() {
9 alert("Second Clicked");
10 $("#click-button").off('click').on('click', firstClick)
11}