title: jQuery Copy text field's value from a different form into another form's text field
body: <p>I have two forms.</p>
  
  <p>I want to copy the value of one of the text fields in form 1 into another in form 2.</p>
  
  <p>Text field names and ids are different.</p>
  
  <p>How can I achieve this?</p>
  
  <p>This didn't work:</p>
  
  <pre><code>document.getElementById('name').value = document.getElementById('user').value;
  </code></pre>
  
  <p>Thanks!</p>