以下适用于所有按钮和选择(jqm 1.2)。页面主题是 data-theme-a。如何让它适用于类名为cc_group的页面上的特定选择?
$(document).on('click', '.btn_setup', function (event, ui) {
var theme = 'e';
//the only difference between this block of code and the same code above is that it doesn't target list-dividers by calling: `.not('.ui-li-divider')`
$.mobile.activePage.find('.ui-btn').not('.ui-li-divider')
.removeClass('ui-btn-a')
.addClass('ui-btn-up-' + theme)
.attr('data-theme', theme);
});