I'm curious if there is a JQuery function available that can be used to transfer the exact CSS styles from one element to another. I want all the CSS properties to be applied without any additional inheritance.
For example:
<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 there is a function in JQuery
that can do this, it would save me a lot of time from trying to work around a master stylesheet in the CMS I am using.