function my_function () {} (...)
// enabling onlick event
$("#link").prop("onclick", "my_function()");
// disabling onlick event
$("#some_button_click").click() {
$("#link").prop("onclick", null);
}
I have a button that should disable an onlick event. That is fine. But then, I need to reset the onclick event to the initial state, which is enable.
How can I do that?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments