Div Collapsed and Resized when one of div is Closed

Posted by Samy33 under JavaScript on 9/27/2010 | Points: 10 | Views : 1277 | Status : [Member] | Replies : 1
I am having more than Four Divs in my application.Every Div Contains the Gridview and Contains Some Datas in it.when User Closed one of the div that div has been Closed and other Divs are Positioned into Correct Format For Example i am having four divs when user closed Second div,third div Comes into Second divs Position and Fourth Div Comes into third Divs Position and adjusted into Similar Position four all Divs ?

i am in new in Javascript Coding............

please Help me.?If you know that Concept Please Help me

Thank you


Posted by: SheoNarayan on: 9/27/2010 [Administrator] HonoraryPlatinum | Points: 25

I hope you are trying to achieve Accordion functionality. Have a look at this http://www.asp.net/ajaxlibrary/act_Accordion.ashx you can use this control and do it easily.

However it can be done using plain javascript as well or jQuery by simply using .hide and .show functions. For that you need to learn them, Learn jQuery from http://www.dotnetfunda.com/tutorials/jquery/


Sheo Narayan

Samy33, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response