well, i dont have an answer to your problem, but you could just use
$(this).next().slideToggle();
as long as you have a recent version of jQuery.

On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:

 Hi, all…

I'm experimenting with how to make a "Details Slidedown"

for a calendar.  In the examples below, I work with

dl's, dd's, and dt's.  Provides smooth show/hide.

If I try to use two different classes of table rows,

they jerk open and closed.  See the examples…

I'm new to jQuery and to JS in general, so be gentle.  :o)

Question:  Why would this code slide smoothly…

$(document).ready(function() {

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

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

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

             answer.slideUp();

         } else {

             answer.slideDown();

         }

     });

});

…and this code jerk open and closed?

$(document).ready(function() {

        
$('.details2').find('tr.details').hide().end().find('tr.heading').click(function()
{

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

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

             answer.slideUp();

         } else {

             answer.slideDown();

         }

     });

});

Are there better options (code) for creating a "details section" to slide
down below

a table row in a calendar?

Thanks for any help!

Rick

_______________________________________________
jQuery mailing list
[email protected]<https://mail.google.com/mail?view=cm&tf=0&[EMAIL PROTECTED]>
http://jquery.com/discuss/


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

Reply via email to