I am trying to use jQuery to basically wrap a bunch of CSS modifications via jQuery but on pages where the IDs or Classes dont exist I get errors ? Like
jQuery(".class").css(random_stuff) is not a function
Any ideas what I can do to either find the elements and do nothing or ?
In this case it looks like the jQuery library isn’t being included correctly.
If jQuery finds nothing matching your selector, nothing will happen because it didn’t find any elements to perform the action on, this is the default behavior.