D
Dave
When I put my <div> tag around multiple table rows like this...
<div id="div4" style="display:none;">
<%
Do while not rs2.eof
%>
<tr>
<td>
<%
Response.Write ("<p>" & rs2.Fields("example") & "</p>")
%>
</td>
</tr>
</div>
<%
rs2.movenext
Loop
%>
...it does not apply. IOW all rows will display even though the
style="display:none;"
But if I set my <div> tag up around each cell like this...
<%
Do while not rs2.eof
%>
<tr>
<td>
<div id="div4" style="display:none;">
<%
Response.Write ("<p>" & rs2.Fields("example") & "</p>")
%>
</div>
</td>
</tr>
<%
rs2.movenext
Loop
%>
...the style is applied but I can only reference the first row in the table.
This is beacuse I now have multiple tags with the same id ("div4").
Is there any way to apply <div> tag across table rows so I can operate on
several rows at once?
<div id="div4" style="display:none;">
<%
Do while not rs2.eof
%>
<tr>
<td>
<%
Response.Write ("<p>" & rs2.Fields("example") & "</p>")
%>
</td>
</tr>
</div>
<%
rs2.movenext
Loop
%>
...it does not apply. IOW all rows will display even though the
style="display:none;"
But if I set my <div> tag up around each cell like this...
<%
Do while not rs2.eof
%>
<tr>
<td>
<div id="div4" style="display:none;">
<%
Response.Write ("<p>" & rs2.Fields("example") & "</p>")
%>
</div>
</td>
</tr>
<%
rs2.movenext
Loop
%>
...the style is applied but I can only reference the first row in the table.
This is beacuse I now have multiple tags with the same id ("div4").
Is there any way to apply <div> tag across table rows so I can operate on
several rows at once?