Scriptaculous effects don’t work unless your target _id_ has a child
Thursday, September 14th, 2006
If you try to do:
new Effect.SlideDown('mydiv')
on
PLAIN TEXT
HTML:
<div id="mydiv">
foo
</div>
Scriptaculous will look at you with a blank stare. In order to work, the div seems to need to have a child element other than a text element. This will work, for instance:
PLAIN TEXT
HTML:
<div id="mydiv">
<p>foo</p>
</div>
Go figure.



