Hello, I'm still inexperienced in javascript and have chosen jQuery to
learn. This is the following situation:

Control:
<ul class="list">
     <li>Post #1</li>
     <li>Post #2</li>
</ul>
I'm doing a loop on php, it gives me this output,
echo "<div class='posts' id='$uniqueID' >";
echo "<h1> Summary </h1>";
echo "<p> {$Content} </p>";
echo "</div>";

How do I handle that to show or display? I want to toggle the content,
but when I do, it actives all the hidden post at the same time, making
an undesirable output.

So in the event that a user clicks the element I want that exact
element to be displayed while the others remain hidden.
This is what I'm using, still reading, but since I don't know how to
identify or match an ID against the selected element its hard for me
to know what I'm doing

                $('ul.list').click(function() {  $('div.posts').show() });

Reply via email to