Hello,
reading some tutorials and trying to use them I have a problem with
one of them :
I've a list of dl, dt, dd like this :
<div id="foo">
<dl>
<dt>Foo</dt>
<dd>My foo text</dd>
<dd>Some more foo text</dd>
</dl>
</div>
I use this function in my header :
$(document).ready(function() {
$('#foo').find('dd').hide().end().find('dt').click(function() {
var answer = $(this).next();
if (answer.is(':visible')) {
answer.slideUp();
} else {
answer.slideDown();
}
});
});
It hides well all my dd but, when I click on dt it just show me ONE
of the dd : the first one.
Anyway, the w3 confirms me that there should be more than one dd for
a dt.
http://www.w3.org/TR/html401/struct/lists.html#h-10.3
And when I read the function it seems to me that all the dd should
been shown, dont they?
So what? An idea?
--
Philippe Auriol
http://philippe.auriol.free.fr/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/