title: Disable/Enable specific div id (class) in html
body: <p>How to remove/append specific div inside html code? I have one way script...</p>
  
  <pre><code>&lt;body&gt;
  
    &lt;div id = "GFG_DIV"&gt; 
      This is Div box. 
    &lt;/div&gt; 
  
    &lt;button onClick = "GFG_Fun()"&gt; 
      click here 
    &lt;/button&gt; 
  
    &lt;!-- Script to remove HTML element --&gt;
    &lt;script&gt; 
    var div = document.getElementById('GFG_DIV');  
  
    function GFG_Fun() { 
      div.parentNode.appendChild(div); 
    }     
    &lt;/script&gt;
  
  &lt;/body&gt;  
  </code></pre>