title: Take value from text field and perform jquery when submit is pressed
body: <p>I have the following text field:</p>
  
  <pre><code>&lt;input type="password" id="seed" placeholder="Enter Seed" onkeydown="if (event.keyCode == 13) { setSeed(value.toUpperCase()); refreshPage(); }"/&gt;
  </code></pre>
  
  <p>This does a function when I enter input and press enter. I have now added a submit button underneath which I want to do the same function when clicked.</p>
  
  <pre><code>&lt;input type="submit" value="Submit" onkeydown="if (event.keyCode == 13) { setSeed(value.toUpperCase()); refreshPage(); }"&gt;
  </code></pre>
  
  <p>Could someone help tell me how I refer to the value in the text field. Also if "onkeydown" is correct e.g. it shouldn't be something like "onclick".</p>
  
  <p>Thanks!</p>