It seems the syntax below is wrong because I am getting an error “css is not a function” in Firefox. What’s the correct syntax? I am trying to add a css property to the first object in the set.
$("div[id$='rvReport']").get(0).css("overflow", "auto");
You shouldn’t be using
.get(). Instead, use.first():You can also use .eq(0) to get the first element. It’ll work the same, the only difference being that it’s more flexible if you want to return an element that isn’t first.