Hi Scott,

I use this for DOM browsers (not worreid about NS 4.x)


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>

to show

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

And have a method to toggle the display

<script language="javascript">

// pass in the id of the div to hide/show

function toggleDivDisplay(element) {

if (document.getElementById(element).style.display == "none")

document.getElementById(element).style.display = "block";
else
document.getElementById(element).style.display = "none";
}
</script>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stephen Bosworth
Application Development and Integration
Communication and Information Services
The University of Newcastle, Australia
Phone: 02 4921 6574
Fax: 02 4921 7087
Mobile: 0438 492518
Email: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>>> [EMAIL PROTECTED] 1/06/2004 4:24:50 pm >>>
Hi,

I would like to make three of four rows of a table invisible until a user
has selected a particlaur value in another field.

I assume you can place a div around the <tr></td> tags and set its visible property
to hidden and change this based upon the other value??

I haven't done much with the dhtml, and am not sure if I am heading down
the right path.

Any code/suggestions/examples appreaciated...

My code does not work:

<DIV id="ANAETHESTIC_TIMES" style=" visibility:hidden;">
        <TR>
                <TD>Start Time</TD>
                <TD>&nbsp;</TD>
                <TD><INPUT type="TEXT" name="START_TIME" VALUE=""></TD>
        </TR>
</DIV>


---
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


---
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