Dashboard tabs

Permalink
Hey guys!
I implemented dashboard tabs using this how-to:
http://www.concrete5.org/documentation/how-tos/developers/how-to-us...

It works fine, apart from when first loading the page, all the tab contents are displayed. After clickin one of the tabs, it works perfectly: shows the content of the clicked tab and hides the other ones.

Can anyone suggest any solutions for this problem?

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
My usual solution to this sort of thing is to trigger a click event on the first tab at the end of the ready handler. Effectively automating what you have already observed.

Another solution is to (in the php) style the div containing the first tab content to show and the divs containing subsequent content to hide.