Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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";>
  Search
</a>  

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

thanks

like image 316
h_a86 Avatar asked Mar 17 '12 08:03

h_a86


1 Answers

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.

like image 62
user1182155 Avatar answered Sep 28 '22 20:09

user1182155