@shahin
> el.css(‘background-color’, ‘grey’); is not changing the background color…any idea why?
Yes, this is because push buttons use an image background (see screenshot below). You would need to change the image src as well for a fully gray look.
You can switch to a custom-button. But also with the custom-button if you use a background style other than a solid color, e.g., default is a color gradient, then you can not simply change the background color as it is a gradient.
If you are running your project in the simulator, use f12 to open the inspector and you can see the css for every element in the dom. Then you can experiement by disable/enable diff styles in the hierarchy to see which to override for your purpose. See attachment disable-button-inspector.png
Attachments:
You must be
logged in to view attached files.