I have 2 buttons
$(".button1").on("click", function(event){
$(".button2").on("click", function(event){
What I would like to do is start from button1, by clicking and not listening to the event listener, when button2 is pressed, the event listener is deleted, and the event listener for button 1 is activated.
This is a fairly common method in actionscript 3 with the removeEventListener () method and would like to use a similar method or method in jquery.
source
share