Hi folks. Sorry for the semi-cross-posting in the CSS group. I have a
question with regards to turning on and off a div.
I am doing AJAX calls for comments on a topic. Upon clicking, comments
are looked up for that record, and presented below the item. Initally,
that div has a unique id, so it's difficult to target, but I can find
it using some passed parameters.
When it is first created, there is no attribute set to display. So
display essentially = "". I want to modify the div id so that the
comments are then hidden. The problem is, the only choice I have is to
set the display to "none", which collapses the whole area, so the
original display is somewhat collapsed as well.
Is there any way I can keep the structure of the div, but hide its
contents, without collapsing its original entry?
This is difficult to explain. Just trying to find a display option for
a div that doesn't destroy the structure that I need.
Cheers
question with regards to turning on and off a div.
I am doing AJAX calls for comments on a topic. Upon clicking, comments
are looked up for that record, and presented below the item. Initally,
that div has a unique id, so it's difficult to target, but I can find
it using some passed parameters.
When it is first created, there is no attribute set to display. So
display essentially = "". I want to modify the div id so that the
comments are then hidden. The problem is, the only choice I have is to
set the display to "none", which collapses the whole area, so the
original display is somewhat collapsed as well.
Is there any way I can keep the structure of the div, but hide its
contents, without collapsing its original entry?
This is difficult to explain. Just trying to find a display option for
a div that doesn't destroy the structure that I need.
Cheers
Comment