Here is the code to add event
$(document).on({
click: function() {
$(this).hide();
$(\'#form_name\').removeClass(\'hide\');
An event handler is bound to an element. You can unbind an event handler from the element it is attached to, but you can't unbind it from a descendant element since that isn't where it is listening.
You can either:
return
before doing anything.