I am loading .html file using jquery load() function. The html file which i am loading
contains some script, in that script there is keydown event binded with the document,
like : $(document).on("keydown", handler);. Now in the callback of load() i am
trying to unbind keydown event, $(document).off("keydown"); but the event was not unbind.
Can anybody tell me what i am doing wrong?
You may consider using
bindandtriggerto attach and fire events instead ofon.