Hi Stephen,

This is invalid HTML and therefore not advisable. You simply can't put the
DIV outside the TR and TD yet within the TABLE. I would suggest maybe
putting the style and id onto the TR element instead, or better still
setting a class (or ID if you only use it once per page) in your stylesheet
and using that.

> to hide:
>
> <DIV id="ANAETHESTIC_TIMES" style=" display:none;">
>       <TR>
>               <TD>Start Time</TD>
>               <TD>&nbsp;</TD>
>               <TD><INPUT type="TEXT" name="START_TIME" VALUE=""></TD>
>       </TR>
> </DIV>

This is a result from the WDG Validator
http://www.htmlhelp.com/tools/validator/direct.html

Errors and Warnings

Line 11, character 52:
... times" style="display: none;">
                                 ^Error: element DIV not allowed here; check
which elements this element may be contained within
(http://www.htmlhelp.com/reference/html40/block/div.html)

Line 12, character 6:
                <tr>
                   ^Error: element TR not allowed here; check which elements
this element may be contained within
(http://www.htmlhelp.com/reference/html40/tables/tr.html)

Input
 1   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2
 3   <html>
 4   <head>
 5      <title>Untitled</title>
 6   </head>
 7
 8   <body>
 9
10   <table>
11      <div id="anaethestic_times" style="display: none;">
12              <tr>
13                      <td>Start Time</td>
14                      <td>&nbsp;</td>
15                      <td><input type="TEXT" name="START_TIME"
value=""></td>
16              </tr>
17      </div>
18      <tr>
19              <td>Start Time</td>
20              <td>&nbsp;</td>
21              <td><input type="TEXT" name="START_TIME" value=""></td>
22      </tr>
23   </table>
24
25   </body>
26   </html>

Regards,

Peter




---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to