title: How to call function java script when user fill text in input id="value_1" and then press `Enter` on keyboard?
body: <p>How to call function java script when user fill text in input <code>id="value_1"</code> and then press <code>Enter</code> on keyboard ?</p>
  
  <p>..............</p>
  
  <p>When user click button <code>type="button"</code> it's will call function send_data()</p>
  
  <p>but if user fill text to input <code>id="value_1"</code> and press <code>ENTER</code> on keyboard, it's not call function <code>send_data()</code> , How can i do for call function <code>send_data()</code> when user press <code>ENTER</code> on keyboard ?</p>
  
  <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  function send_data(){
      var value_1 = $('#value_1').val();
      window.location = '/aaa/'+value_2;
      return false;
  }
  &lt;/script&gt;
  
  &lt;form name="f1" method="get" action=""&gt;
  name : &lt;input type="text" id="value_1" value=""/&gt;
  &lt;input type="button" name="submit" onclick="send_data()" value="send"/&gt;
  </code></pre>