I have some sliders which I want to style via jquery For example:
<input type="range"/>
To style it with plain css I would write:
input[type="range"]::-webkit-slider-thumb{
/* blah blah blah*/
background:red;
}
This is working. However if I try this:
$("input[type='range']::-webkit-slider-thumb").css("background","red");
It will not give me an error but it also will not work. I have seen some other similar questions .The answer to these questions were to insert a new style tag with jquery and some classes(Something i don't want to do).Is there any way to style ::-webkit-slider-thumb with jquery? UPDATE I don't want to inject any new style tags to my html or use custom classes!!!