Set an event handler for any element that matches a selector, even if it gets added to the DOM after the initial page load: $(‘button.someClass’).live(‘click’, someFunction); This allows you to load content via ajax, or add them via javascript and have the event handlers get set up properly for those elements automatically. Likewise, to stop […]