on and off
on attaches handlers and off removes them.
Example
function hi() { console.log("hi"); }
$("#a").on("click", hi);
$("#a").off("click", hi);
$("#a").one("click", hi);Exercise
Remove handler.
$("a").("click")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.