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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With