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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -