How do you change the color of a slider? It seems most other style properties work properly when using slider.style();, but neither background or background-color seem to make any change. I also tried to set the color in the style.css and update it via slider.class() with no luck. Any help here would be appreciated.
I’m not sure this is possible as the slider design is built into the browser being used.
You might have to make a custom slider.
I was kind of wondering that. I don’t mind to create one, just thought maybe I was missing something since I was able to get other properties to work using style().
Faced the same issue. Setting attribute: appearance: ‘none’ in the .css file and then updating the background colour worked.