|
it's not complicated, only that I don't quite understand what you mean by "toggle it as "hide" when the content is expanded" ??
do you want to automatically detect if the content was set to a default state (like none, or block) and the toggleview function should know how to toggle the content, or you want to manually set the display states in the function?
(something like this:
toggleview('q1', 'none', 'block', event) -> which will toggle the content from block to none
or
toggleview('q1', 'block', 'none', event) -> which will toggle the content from none to block
where the first display state is the default state of the content and the second is the state to change to.
)
__________________
...to be continued
|