[jQuery] How to collapse slideToggle sections by default?

2009-11-19 Thread srikanthv
How to collapse slideToggle sections by default?When page loads all sections should be collapsed. When I click it should expand. I have below couple of sections and I am using jQuery $(document).ready(function(){ $('h4').click(function () { $(this).next('div').slideTog

[jQuery] Re: Slide with jQuery.

2009-11-19 Thread srikanthv
How can I make this section under by default collapsed? On Nov 19, 7:39 am, Leonardo K wrote: > $("h4").click(function(){ >        $(this).next('div').slideToogle(); > > }).trigger('click'); > On Thu, Nov 19, 2009 at 04:11, srikanthv wrote: > &

[jQuery] Slide with jQuery.

2009-11-19 Thread srikanthv
I have to implement slide on each question. by default question will be collapse. when I click on on question it should be slide down (expand). How can I implement this on jQuery? Please forward me solution. What is jQuery? jQuery is a lightweight JavaScript library that emphasizes interaction