I am a novice jQuery student and need a bit of help. Is it possible for Jquery to change a <div>
to an <a>
dynamically depending on what the class of the <div>
is? I have searched and can't find any reference to doing something like this using .add(), .append() or .html()
For example I want to change this:
"<div class="item"><div class="caption">pic1</div></div>"
to this:
"<a class="item" href="#"><div class="caption">pic1</div></a>"
Thanks for any help you may give or advice. Mike