I want to activate the jQueryUI button widget on a given selector, lets say '.button'.
Whats the best way to automatically activate the widget on any new '.button' elements inserted to the DOM after the initial page load via ajax.
Previously, I used the livePlugin with code something like this:
$('.button')
.live(function(){
$(this).button();
})
Since 'live' has been moved to the jQuery core the live function requires an event type as the first parameter so this is no longer possible. Is there alternative method within the jQuery core that will achieve this?