JQuery div display, collapse
04:31 24 Feb 2014

I am not a jquery specialist but I have managed to make this script working on my website:


Basicly it displays and collapses a div (distinguished by id), I have many divs on my wbesite that are displayed this way(its an inline code, for each div separate code) What I would like to do with it is to close all other divs (e.g. from the same class) when I open another one.

Could please someone help me to modify this code so that it will collapse all other divs form the same class?

javascript jquery html