title: I need to append div just below textbox dynamically
body: <pre><code>Name: &lt;input type="text" id='name'/&gt;
  &lt;!-- Here I want to create div when myFunction() is called --&gt;
  
  &lt;button onclick="myFunction()"&gt;Submit&lt;/button&gt;
  
  &lt;script&gt;
  function myFunction() {
  
      var ele = document.createElement("div");
      ele.setAttribute("id","timedrpact");
      ele.innerHTML="fffffffffff";
      document.getElementById("name").appendChild(ele);
  
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Anything wrong in this JavaScript code.</p>