title: jquery equivalent javascript for element.function like $("div").toggle()
body: <p>I'm using jQuery and I want to convert some methods to native JavaScript code.</p>
  
  <p>In jQuery we are using like</p>
  
  <pre><code>$("div").toggle()
  </code></pre>
  
  <p>Is it possible to convert to JavaScript like</p>
  
  <pre><code>document.getElementById("id").callfunction();
  </code></pre>