Show table and input box

Discussion in 'JavaScript' started by mlavta1, Oct 22, 2008.

  1. #1
    I have a code which make input visible...

     <span onClick="document.getElementById('test').style.display = 'block';">show div</span>
    <div style="display:none;" id="test" name="test">
     <textarea name="p_description" id="p_description" cols="45" rows="5"></textarea>
    </div>
    HTML:
    But it doesn't work, if I insert in div, one table and text.

    What must I do to make visible hole table with content.

    Thanks
     
    mlavta1, Oct 22, 2008 IP
  2. webrickco

    webrickco Active Member

    Messages:
    268
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You mean this:
    
    <span onClick="document.getElementById('test').style.display = 'block';">show div</span>
    <div style="display:none;" id="test" name="test">
      <table width="100%">
     	<tr>
     		<td>
     			Show something
     		</td>
     	</tr>
    </table>
    </div>
    
    HTML:
    Works fine for me! (tested on FF 2.0.0)
     
    webrickco, Oct 24, 2008 IP