[jQuery] Re: Toggle div and change class

2007-07-07 Thread SteelSoftware
So many thanks Mike, you've helped me a lot. My background is pure CSS so the onload stuff confused me somewhat. Thanks again Steve On Jul 7, 1:10 am, Michael Geary [EMAIL PROTECTED] wrote: You're not the first person who has gotten tripped up on this point. Because jQuery uses CSS-like

[jQuery] Re: Toggle div and change class

2007-07-06 Thread Glen Lipka
Just for readability, you might want to use the toggle function and the slideToggle function too. Totally untested, but in the ballpark. Im also using the slideToggle's callback feature to WAIT until the slide is finished before changing the class. $(p).toggle(function(){ el = $(this);