search for: hasbtm

Displaying 1 result from an estimated 1 matches for "hasbtm".

Did you mean: habtm
2007 Apr 21
0
Collapsible Hide/Show DIV
...ementById(divid).style.display = ''none''; } } </script> Now, I have for example a major category, with many items in that category. What I want to do is, show the category name, but under this category, hide the related items. This is done is one loop since I have a HASBTM relationship. For example then in pseudo code: for each cat in cateogry /possible cats are kitchen, living room, garage <table> <tr> <td>Kitchen (show more)</td> </tr> <tr> div <td>knife $3.00 Buy Now</td> <td>Spatula $5.00 Buy Now&lt...