In future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:
Warning: Please include a link to the DD script in question in your post. See
this thread for the proper posting format when asking a question.
That said, your example works just fine here. What you cannot do though is to break up the flow of a table with div elements, so this would not work:
Code:
<a href="javascript:animatedcollapse.toggle('test')">test</a>
<table><div id="test" style="width: 679px; background: #FFFFFF; display:none">
<tr>
<td>Hello!</td>
</tr>
</div></table>
This would not work:
Code:
<a href="javascript:animatedcollapse.toggle('test')">test</a>
<table>
<tr><div id="test" style="width: 679px; background: #FFFFFF; display:none">
<td>Hello!</td></div>
</tr>
</table>
This would:
Code:
<a href="javascript:animatedcollapse.toggle('test')">test</a>
<table>
<tr>
<td><div id="test" style="width: 679px; background: #FFFFFF; display:none">Hello!</div></td>
</tr>
</table>
You could even nest a full table inside the div if you need columns and/or rows.
Bookmarks