Update:
Got it. I need to change the div structure. The nameP div wraps nameE so there needs to be a separate div for Ptext.
<div class="element">
<div class="nameP">
<div class=PP>Ptext</div>
<div class="nameE">Etext</div>
</div>
</div>
I struggled with the title here. Using jquery Isotope. Code will hopefully explain:
<div id="container">
<div class="element">
<div class="nameP">Ptext<BR>
<div class="nameE">Etext</div>
</div>
</div>
several more <div class="element"> repeats
</div>
There is a button outside "container" which when clicked I would like to reverse the contents of all ...class="nameP" with ...class="nameE". There are other divs being exchanged but I figure if I get it for one I can do it for all.
I hope this is clear and I hope you have some suggesions. thx