Hi, Karl.
Thanks! It worked like a charm. I knew the solution
was something simple, but getting the syntax for JS in general
and JQ in particular takes awhile! But jQuery has given me
the confidence to jump into the fray. and I'm really like it!
Rick
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Tuesday, February 20, 2007 12:35 PM
To: jQuery Discussion.
Subject: Re: [jQuery] How to made 'dd' hide first...
Hi Rick,
Try this:
$(document).ready(function() {
$('dd').hide()
$('dt.toggle').css("cursor","hand").bind("click", function(){
$(this).next('dd').slideToggle(800);
});
});
The initial $('dd').hide() line hides all of the <dd> elements when the DOM
is ready.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 12:10 PM, Rick Faircloth wrote:
Hi, all.
When I try this.
$(document).ready(function() {
$('dt.toggle').css("cursor","hand").bind("click", function(){
$(this).next('dd').slideToggle(800);
});
});
.the 'dd' displays initially in the open position, then closes onClick.
How do I need to change the code so that the 'dd' displays initially closed?
Thanks!
Rick
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/