Here is the code to add event
$(document).on({ click: function() { $(this).hide(); $(\'#form_name\').removeClass(\'hide\');
Try this:
$('.form-template-name').unbind("click"", event);
and define the click event as:
var event = function() { $(this).hide(); $('#form_name').removeClass('hide'); $('#form_template_name') .attr('placeholder', $(this).text()) .focus(); };
Then use it as you did before.