I am trying to set the background color of a range using jquery. I used all the functions in the header and they all give me an error:
SCRIPT438: object does not support property or method 'css' / 'attr' / 'addClass'
Any idea how I can solve this? All I want is to change the color of bg, but I prefer if I can set the class.
code:
var liList = ul.find('li span'); $.each(liList, function(index, value){ if(value.innerText == currPage){ value.css('background-color', '#D94A38'); } });
Jonny source share