title: JQuery to collapse table?
body: <p>I'm running the MyBB forum software and was able to load jQuery without breaking the functionality. The board itself already has a collapse function but I would like to do it in jquery, or well add a nice jquery effect to it, more smoother.</p>
  
  <p><a href="http://craftedbyfrank.com" rel="nofollow">http://craftedbyfrank.com</a></p>
  
  <p>At the moment when the [+] and [-] images are clicked the table collapses and shows.</p>
  
  <p>I'm trying the following but having no luck.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;                                         
    $(document).ready(function() {
    $("tr.thead").click(function () { 
    $("tr.thead.img", $(this).parent()).slideToggle("fast");
     });
  
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I loaded jQuery 1.9</p>
  
  <p>All help is appreciated.</p>