I am trying to have three divs , initially all are closed.When the div is closed a span to right side is shown which is an arrow pointing towards right , when I click any div I want that the corresponding span arrow points down and again when that div is collapsed it should point right.Here is my fiddle.I think I am missing something , can anyone just help me out with this.
Also if any one could just let know better ways of doing this task (entire collapse , expansion) , it would be much appreciated.
Thanks
I am trying to have three divs , initially all are closed.When the div
Share
I’ve made a few amends to your code, including using classes to group elements. Your code was originally set the selected arrow, so you needed to change all the divs back their default state before completing the actions on the clicked one.
Try this:
Example fiddle