[jQuery] How can I find out if a <style> class exists?
I'm working on something that I want a user to be able to override by
including a specific class somewhere in the CSS definitions. If that
class doesn't exist I want to add a default style. This seems like
something that should have come up before but search isn't coming up
with anything. Can someone point me in the right direction? Local
styles/classes override global classes right?
IOW given the following:
<style>
#myDiv {background: blue;}
</style>
<div id="myDiv" style="background: red">
The div's background would be red, correct?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/