Answers for "div hide show"

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
3

how to hide div in html

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

Browse Popular Code Answers by Language