$("h4").click(function(){
       $(this).next('div').slideToogle();
}).trigger('click');

On Thu, Nov 19, 2009 at 04:11, srikanthv <getur.srika...@gmail.com> wrote:

> I have to implement slide on each <h4> 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.
>
>
> <h4>What is jQuery? </h4>
> <div>
> <p>jQuery is a lightweight JavaScript library that emphasizes
> interaction between JavaScript and HTML. </p>
> <p>It was released in January 2006 at BarCamp NYC by John Resig.</p>
> <p>jQuery is free, open source software Dual-licensed under the MIT
> License and the GNU License</p>
> </div>
>
>
> <h4>What are jQuery features</h4>
> <div>
> <p>DOM element selections using the cross-browser open source selector
> engine </p>
> <p>DOM traversal and modification (including support for CSS 1-3 and
> basic XPath)</p>
> <p>Events</p>
> </div>
>

Reply via email to