I really liked the .live method as it was straightforward and essentially not much different than your standard event handler.
Alas, it was deprecated and I\'m left
To replace .live() you need one more parameter int he .on() call.
// do not use! - .live(events, handler)
$('#container a').live('click', function(event) {
event.preventDefault();
console.log('item anchor clicked');
});
// new way (jQuery 1.7+) - .on(events, selector, handler)
$('#container').on('click', 'a', function(event) {
event.preventDefault();
console.log('item anchor clicked');
});
Source: http://www.andismith.com/blog/2011/11/on-and-off/