I have a controlgroup and I am dynamically adding and removing ui-btn-active class to toggle the active button. The button toggles just fine, but I can’t seem to find a way to change the active button theme.
I want the in-active buttons to use the
dtheme and the active
buttons to use theatheme.Does anyone know how I can do this?

HTML:
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-inline="true" data-mini="true" id="myApptBtn">My Appointments</a>
<a href="#" data-role="button" data-inline="true" data-mini="true" id="allApptBtn">All Appointments</a>
</div>
OK so this is what I ended up doing.
jQuery:
HTML:
Answer to Question:
So as it turns out, you can’t override the theme via the markup.
Global “Active” state