Jquery mobile button background color

cssjqueryjquery-mobile

here is my code of a jquery mobile button

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

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

thanks

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.