I have this code:
jQuery('.post-single-content').addClass('padT');
jQuery('.post-single-content').css("padding-top", "40px");
It basically converts this:
<div class="post-single-content">
into this:
<div class="post-single-content padT" style="padding-top: 40px;">
I am however trying to change the code so it converts it into something like this:
<div class="post-single-content">
<a href="../index.html"><img src="../spacer.jpg"></a>
Could someone tell me how to do this. I've tried to use a few examples from here but had no luck. Any help would be appreciated.