I have the same issue, however the published solution above doesn't work as I am calling the classes form a $.load, so:
- The font page loads (html, javascirpt etc)
- A button is clicked which toggles $.load, this retrieves the new html which includes the show or hide bit - which I want to start hidden.
The problem I am having is getting that class to start hidden, it always starts on show. I have tried the above recommendation but as the code isnt there at event start it wont work, nor does it work when I load the HTML then try it.
Thanks,
Bogo