Title: How to code a slide-up, slide-down for this?

Hi, all

I would like to be able to show announcement titles on a page,

initially hide the text, then on clicking the title, have the text

slide down or up.

The following example uses list elements to do this, but I would

like to use something else because of the behavior of list elements.

$(document).ready(function() {

        $('#faq').find('dd').hide().end().find('dt').click(function() {

         var answer = $(this).next();

         if (answer.is(':visible')) {

             answer.slideUp();

         } else {

             answer.slideDown();

         }

     });

});

Could I use a named anchor or something else to create this effect?

I dont see why I couldnt, but what would I use in place of the

dd and dt elements?  Other anchors or what?  DIVs?

Thanks for any guidance or suggestions

Rick

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to