Answers for "display hide"

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