title: jQuery click and show list of elements
body: <p>I have list of elements from DB and show in table with button:</p>
  
  <pre><code>&lt;a href="#" class="hiden"&gt;&lt;/a&gt; 
  </code></pre>
  
  <p>for show and hide advance info where contain in </p>
  
  <pre><code>&lt;div class="object&gt;&lt;/div&gt;
  </code></pre>
  
  <p>My jQuery script is:</p>
  
  <pre><code>$(document).ready(function() {
      $(".object").hide();
      $('.hiden').click(function() {
          $(".object").toggle();
      });
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;table class="table table-hover"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th class="but" colspan="2"&gt;&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;?php foreach($model as $object): ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;a href="#"&gt;&lt;?php echo $object-&gt;name; ?&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td class="but"&gt;
          &lt;a href="#" class="hiden"&gt;&lt;/a&gt; 
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td colspan="4"&gt;
              &lt;div class="object"&gt;            
                  &lt;table class="table table-bordered"&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;?php endforeach; ?&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I have some problems when a click on a.hiden all elements of list show and click all elements hide. I want while one element show other elements hide.</p>
  
  <p>Please help me</p>