I just wanted to do so on function
function changeGenre(toWhat) {
[...]
$('::selection').css("background-color",'rgb('+color+')');
}
But it doesn't seem to work. Why?
EDIT: ::selection
isn't a DOM element, so I'm looking for alternative way of solving this.