Problem with toggle()

Problem with toggle()

Hi All
I need some help in my JQuery code I can not seem to understand where I am going wrong.  It's a simple ' Parent' and ' Child' style collapsible table.  So to start with all ' children' are hidden and if you click on a Parent it shows all it's children.  The problem with my code is when I click on a Parent all of it's children are shown in all the rest of the Parents too
Thanks 
  1. $(document).ready(function() {
  2. $("#report tr:odd").addClass("odd");
  3. $("#report tr:not(.odd)").hide();
  4. $("#report tr:first-child").show();
  5. $('location.href').click(function() {
  6. $.ajax({
  7. type : 'GET',
  8. url : 'Test',
  9. data : '${cat.categoryId}',
  10. success : function(response) {
  11. $('ul').html(response);
  12. $("#report tr.odd").next("tr").toggle();
  13. }
  14. });
  15. });
  16. });
  17. JSP
  18. <c:if test="${!empty categoryList}">
  19. <table id="report">
  20. <tr>
  21. <th>Category Name <span><button id="create-cat">Create new category</button></span></th>
  22. </tr>
  23. <c:forEach items="${categoryList}" var="cat">
  24. <tr onclick="location.href='${cat.categoryId}'" >
  25. <td>${cat.categoryName}</td>
  26. <td><div class="arrow"></div></td>
  27. <tr>
  28. <td colspan="5">
  29. <c:forEach items="${prodList}" var="prod">
  30. <ul>
  31. <li>${prod.productName}</li>
  32. </ul>
  33. </c:forEach>
  34. </tr>
  35. </c:forEach>
  36. </table>
  37. </c:if>