I have multiple objects with the classname "level1" (this is built on asp.net, the element does not allow setting an ID here)
What I am trying to do is get one of them and assign css properties
$(".level1")[1].css({"background-color":"yellow"});
I get the error
Error: Object doesn't support property or method 'css'
When I do this:
console.log($(".level1")[1].innerHTML);
I get the correct innerHTML, so I know it gets the right element