How To Add Back jQuery .live() & .die() Function

1 · Subin Siby · Nov. 24, 2013, 12:31 p.m.
As you may know, jQuery removed .live() function and instead they told to use .on() function. But I didn’t like this because .on() needs up more parameters than .live() and to handle a click function you have to add an event to the document, instead of the element. A normal live click event code is like this $("#element").live("click",function(){ dosomething(); }); When using .on() to do the same task, the code will be like this :...