jQuery bind, unbind is not working -
i have written below code, not working expected.
in chrome, alert not working , ie. alert('1');
in firefox or ie working fine,but if comment out alert('1')
not working, has perplexed me long time. appreciate help.
code:
$(function() { createdynamictable(); bindevent(); function bindevent() { alert('1'); $("td.editable").unbind(); $("td.editable").bind("click", function(e) { $(this).unbind(); }); } });
the jquery .bind/.unbind methods deprecated of release 3.0
the new jquery methods attaching/unattaching event handlers .on/.off
Comments
Post a Comment