1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<script> function showDiv() { div = document.getElementById('tow'); div.style.display = "block"; } </script> <style> #tow { display: none; } </style> <div id="one"> <div id="tow"> This is text </div> <button onclick="javascript:showDiv();">Click to show div</button> </div> |
