Arcade Games - Internet Advertising - Debt Consolidation - Debt Consolidation - Deaf Topics

PDA

View Full Version : Show table and input box


mlavta1
Oct 22nd 2008, 12:34 pm
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>

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

webrickco
Oct 24th 2008, 8:48 am
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>


Works fine for me! (tested on FF 2.0.0)