I want to change the color of a scrollbar thumb, which I know can be done using ::-webkit-scrollbar-track { }
in CSS, but in this case the color has to come through from a spreadsheet which I'm using JS to access.
I can't use anything other than plain JS or jQuery (no other libraries). Is there a way of doing this? Ideally something like this (I know this is wrong):
$('::-webkit-scrollbar-track').css({
'background': /* data pulled in */
});