td under div

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abs0lut01
    New Member
    • Jul 2008
    • 4

    td under div

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <table>
    <tr>
    <td></td><td></td>
    <div id="myDiv" style="display: none">
    <input type="text" /><input type="text" /><input type="text" />
    </div></tr></table>
    <a href="#" onclick="if(document.getElementById('myDiv').style.display=='block'){ document.getElementById('myDiv').style.display='hidden'; } else{ document.getElementById('myDiv').style.display='block';}">Show</a>
    </body>
    </html>
    The 3 input text will show if I click the Show link. I need to table the 3 input text.
    please help me...
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Sorry, but I understood very little (none) of what you are in need of.

    Please try explain a little (lot) more.

    Cheers.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Guessing by the Javascript in the code, I assume you are trying to hide the div when the link is pressed?

      To do this with the "display" attribute, use "none" to hide it rather than "hidden".
      The latter is meant to be used with the "visibility " attribute.

      P.S. I would have to agree with Markus tho. Please try to explain things better in the future.

      Comment

      Working...