Bruce MacKay schreef:
> Hi folks,
>
> I have a simple faq application with the question within a dt tag and
> the corresponding answer within a dd tag.
>
> I had hoped that my onload code of:
>
> $('dt.toggle').bind("click",
> function(){$(this).parent('dt').next('dd').slideToggle(500);return
> false;});
>
you don't need parent if the you want the following dd element
$('dt.toggle').bind("click",
function(){$(this).next('dd').slideToggle(500);return false;});
--
David Duymelinck
________________
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/