Answers for "jquery change button click function"

0

jquery change button click function

$("#click-button").on('click', firstClick)

function firstClick() {
    alert("First Clicked");
    $("#click-button").off('click').on('click', secondClick)
}

function secondClick() {
    alert("Second Clicked");
    $("#click-button").off('click').on('click', firstClick)
}
Posted by: Guest on April-11-2020

Code answers related to "jquery change button click function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language