Is there any method to unbind an event that has been bound with one()? Sort of like unone()
Quote from JQuery.com:
You cannot unbind a listener created using .one(). If you want to be able to unbind something that has to occur only once but still be able to unbind it before it occurs, you have to use .bind()
.one()
.bind()
Something like:
$("#element").on("click",function(event){ //do stuff here $(this).off(event); }
2.1m questions
2.1m answers
60 comments
57.0k users