I am loading a .html file using the jquery load() function. The html file I am loading
contains a few script, in that the script has a keydown event associated with the document,
like: $(document).on("keydown", handler); . Now in the load() callback I am
trying to untie keydown event , $(document).off("keydown"); but the event has not been canceled.
Can someone tell me what I am doing wrong?
source share