I want to change a jquery-mobile buttons color swatch dynamically with javascript, but I can\'t\' find a way (except removing and adding all classes and event handlers, but
If the button is defined as:
<button type="button" id="yourbutton">Hello</button>
Then this works the fastest:
$('#yourbutton').parent().find('.ui-btn-inner').css("background-color",yournewcolor);