Jquery mobile button background color


here is my code of a jquery mobile button

<a href="#" data-role="button" style="color:green; background-color:red";>

I want to change button background color, i have tried inline style but its not working however text color changes normally.


Best Solution

Simply use "background:" instead of "background-color:"

<a href="[url]" data-role="button" style="background: green; color: white;">Search</a>

Tested it and it works like a charm.