title: How Simulate "Enter Key Hit" Using With Both Javascript & Jquery
body: <p>How simulate <strong>Enter Key Hit</strong> using with both <code>javascript</code> &amp; <code>jquery</code>?<br>
  I know js has been deprecated but I need it.<br>
  I found many threads about simulate KeyPress <strong>EVENT</strong>, but I am talking about simulate enter key press just like a human do using with js &amp; jquery.<br>
  how can I do that?<br>
  this is my textBox and I want to hit enter on it by codes :   </p>
  
  <pre><code>var texts = document.getElementsByTagName("textarea");
  for (var i = 0 ; i &lt; texts.length ; i++)
  {
    if (texts[i].getAttribute("id") == "my_goal_textBox")
    {
      alert("hi");
      texts[i].value = "hello";
      //-&gt;Now here i want to hit enter key programatically, how?  
   }
  }  
  </code></pre>