jQuery.live is useful function especially when creating dynamic DOM-elements, in addition in large projects its not so simple just go to the function jQuery.on.
There is a simple trick to avoid such troubles with function wrapper jQuery.live:
1 2 3 4 5 6 | jQuery(document).ready(function() { jQuery.fn.live = function (types, data, fn) { jQuery(this.context).on(types,this.selector,data,fn); return this; }; }); |
And live is beautiful =)
