jQuery toggle on PHP foreach loop
<p>Using codeigniter 3.x</p>

<p>i'm trying to get data from database using foreach loop.</p>

<pre><code>&lt;h3 style="margin-right:15px;" id='hideshow'&gt;August 2016&lt;/h3&gt;
&lt;?php foreach($duxeos as $e): ?&gt;
&lt;div class='content' &gt;&lt;h4 class="dropdate"&gt;&lt;?php echo $e-&gt;fulldate;?&gt;&lt;/h4&gt;&lt;div class="cdropdate" class="defhide"&gt;&lt;?php echo $e-&gt;content;?&gt;&lt;/div&gt;&lt;/div&gt;
&lt;?php endforeach; ?&gt;
</code></pre>

<p>javascript :</p>

<pre><code>  jQuery(document).ready(function(){
      jQuery('.hideshow').live('click', function(event) {
           jQuery('.content').toggle('show');
      });
  });

  jQuery(document).ready(function(){
      jQuery('.dropdate').live('click', function(event) {
           jQuery('.cdropdate').toggle('show');
      });
  });
</code></pre>

<p>now it's working, but when i press the hide button, it hide all content, how can i hide content that i want ?</p>