jQuery Find element else do nothing ?

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-03-26T19:08:38Z Indexed on 2010/03/26 19:13 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

Hi Guys,

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 ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about find