I have a table with months as header. When clicked on month i want to display weeks in all tds of corresponding header. I am using toggle for this. How can I toggle back other elements when I click on a new header.
here is the fiddle. Here after first click it is taking two clicks to do the job. What is going wrong? Is there any other concise ways to do this.
Something like this?
@Sami – I think I get your requirement now…
Check the modifie fiddle here – http://jsfiddle.net/johnbk/JYkS6/
-> I removed the css for #o_data
-> id for each element should be unique – changed this to class instead
-> Modified the above code like below