.slider::-webkit-slider-thumb
{
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #00AA00;
cursor: pointer;
}
.slider::-moz-range-thumb
{
width: 25px;
height: 25px;
background: #00AA00;
cursor: pointer;
}
Above is part of a CSS for a slider, where the attributes for the slider's handle are defined. However, I want to change the background colours above without using jQuery. How would I do this after calling the document.getElementById()?