Answers for "show an hide a div"

CSS
1

Show/Hide

<script type="text/javascript">
<!--
    function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }
//-->
</script>
Posted by: Guest on April-30-2021
9

how to hide div in html

document.getElementById('elementName').hide();
Posted by: Guest on November-09-2019

Browse Popular Code Answers by Language