I want to let the user tell me how h2 should style text. I know that
$('h2').css({'color':'red'});
will go through and change all the h2 tags to
<h2 style="color: red;">This is the header</h2>
But that doesn't change what a basic
<h2>something</h2>
looks like. If I tell an RTE, for example, to put h2 tags around something, I won't get the red style that jQuery defined (most likely).
Is there a way that jQuery can change the CSS that defines the basic h2, so that the h2 set in by an RTE reflects the new style?
Thanks