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/