Am creating a Facebook like chat application.(Say for example am chatting with 4 users)
Loginuser : Me
chattinguser-1:radmin
chattinguser-2:admin
chattinguser-3:orderingfacility
chattinguser-4:Ref.Provider
if i close chatting with radmin the adjacent chat div will move by side of closed div.
Question
Am not disposing the div while user close chat.Just hide that div.so that the previous conversations remains in it while re-open it.
My problem is if i re-open the closed div by $(div).show() method it opens at the position where it was created first.I need to re-open that div after all div’s that present
Am attaching a image describing the above
Assuming the divs share a common parent you can try something like that:
I’ve included some example code here:
http://jsfiddle.net/ujdRF/7/