title: Table rows as dropdown
body: <p>I have an HTML table. I'm trying to add functionality such that when I click on a row it should display a set of row, just like drop down menu. I have done the following: </p>
  
  <pre><code>&lt;table&gt;
      &lt;tr class="clicker"&gt;
          &lt;td&gt;some data&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="hidden"&gt;
          &lt;td&gt;Some new data here&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><br /></p>
  
  <pre><code>$(".clicker").on("click", function () {
      if ($(this).next().hasClass("down")) {
          $(this).next().slideUp("normal").removeClass("down");
      } else {
          $(this).next().slideDown("normal").addClass("down");
      }
  });
  </code></pre>
  
  <p>When I trying to add a second and third row in the hidden rows like:</p>
  
  <pre><code>   &lt;table&gt;
  &lt;tr class="clicker"&gt;
      &lt;td&gt;some data&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="hidden"&gt;
      &lt;td&gt;Some new data here&lt;/td&gt;
  
  &lt;/tr&gt;
  &lt;tr class="hidden"&gt;
      &lt;td&gt;Some more data here&lt;/td&gt;
  
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>, it doesn't work. What did I do wrong?</p>