I have a form where I want to make all new DOM elements of the "editbuttons" class into buttons immediately with Jquery UI. New objects of the "editbuttons" class are generated on the page from multiple different jquery functions. Would I have to call .button() inside each of these functions or is there an easy way so that as soon as a new instance of this class is added to the page, it is made into a button?
$('.editbuttons').button();