I have a HTML code:
<div class="content">
blablabla
</div>
<a href="#" class="show">Show hidden content</a>
<a href="#" class="hide">Hide content</a>
I need Jquery code to show or hide div “content”, but i need that code to work with <?php the_ID (); ?>
its will be used in posts loop so i need unicue ID’s.
Ex.: <div class="content-<?php the_ID (); ?>">
Any ideas?
Try this: