I have some controls that aren't needed unless a user selects an item from the drop down list. However, I seem to be unable to hide them when the page initially loads. Can you see a problem with this code, or perhaps point me in the right direction? Thanks.
<div style="display:none;">
<tr>
<td colspan="4"><strong>If Current State is New Lead/Opportunity</strong></td>
</tr>
<tr>
<td>Lead Number</td>
<td><cfinput type="Text" name="leadNumber"></td>
<td></td>
<td></td>
</tr>
</div>
Mark F.That's an invalid place for a div.Try using a tbody element. (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/struct/tables.html#edef-TBODY">http://www.w3.org/TR/html401/struct/tab ... edef-TBODY</a><!-- m -->)
<div style="display:none;">
<tr>
<td colspan="4"><strong>If Current State is New Lead/Opportunity</strong></td>
</tr>
<tr>
<td>Lead Number</td>
<td><cfinput type="Text" name="leadNumber"></td>
<td></td>
<td></td>
</tr>
</div>
Mark F.That's an invalid place for a div.Try using a tbody element. (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/struct/tables.html#edef-TBODY">http://www.w3.org/TR/html401/struct/tab ... edef-TBODY</a><!-- m -->)