Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello ,
i have a UI where i have 3 divs inside 1 parent div .
i want to collapse the div2 & div 3 so that i can expand the div1.
My problem is i am not able to collapse the div towards the right .
so how can i achieve that .

Req: to div1 to exapand when div2 or div3 is collapsed.

Any suggestions Please.
Posted

You will have to use jquery ui's .animate - http://api.jquery.com/animate/[^]

Here is a sample:

http://jsfiddle.net/g3QhL/[^]

If this is not what you are expecting, check out the jquery ui's accordion too, but it expands & collapses vertically.

Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900