Widgets and their class names: button -> btn, selectmenu -> dropdn, draggable -> drag, accordion -> accord, slider -> slider, tabs -> tabs. Using any of the class names in html will activate the appropiate widget. Please let me know what you think about my idea and any suggestions you might have.
$('.btn').each(function() {
$('#' + this.id).button();
});
$('.dropdn').each(function() {
$( '#' + this.id ).selectmenu();
});
$('.drag').each(function() {
$( '#' + this.id ).draggable();
});
$('.accord').each(function() {
$( '#' + this.id ).accordion();
});
$('.slider').each(function() {
$( '#' + this.id ).slider();
});
$('.tabs').each(function() {
$( '#' + this.id ).tabs();
});