Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

empty elements in html

<script>
  function func(){
   document.getElementById('div').innerHTML=''
  }
</script>

<button onclick='func()'>Click</button>
<div id="div">
  This disappears
</div>
 
PREVIOUS NEXT
Tagged: #empty #elements #html
ADD COMMENT
Topic
Name
1+5 =