Possible Duplicate:
How can you determine if a css class exists with Javascript?
I have a stylesheet, added to a document, this way:
<link rel="stylesheet" type="text/css" href="theme.css" id="mainPageTheme" />
I need to find out if a certain class exists in the respective file, and if it does, associate it to an existing element.
How can I accomplish this with jQuery? Thank you!