I'm wondering whether there is a JQuery function that I can use to apply the CSS from a given element to another element. I'm talking about the exact CSS; nothing more applied due to inheritance.
To be more specific:
<div id="d1">
<p id="p1">Here is some text.</p>
</div>
<div id="d2">
<p id="p2">Here is some other text.</p>
<!-- I want this text in p2 to have the same styling as the text in p1, even after the inheritances of the divs are factored. -->
</div>
<script type="text/javascript">
$(...).(...); // ??????????????
</script>
If JQuery
has such a function, it will save me an hour of trying to use my own stylesheet (I'm using a CMS that has a master style sheet that I can't change) to figuring out how to override/add a million properties.