In jQuery mobile how does one dynamically change the theme of a hyperlink within a controlgroup
. I have the id
of the hyperlink but can not find a way of doing this.... I tried:
var ohyper= $("#myid");
ohyper.a({theme: 'b'});
I've Answer my own question.
The following piece of code will dynamically change any hyperlink's theme within a controlgroup in jquery mobile.
$( "#"+myid ).controlgroup({theme: 'b'});
I hope this will help anyone else with a similar question.