title: How to set one HTML input from another input
body: <p>I'm trying to get the value of an input field in my <code>.php</code> document, and with this, set another input field, by triggering an OnClick event.</p>
  
  <p>This is my current code</p>
  
  <pre><code>echo" &lt;label onClick=\" document.getElementById(\"hiddenDescriptionField\").value = 'document.getElementById(\"descriptionField\").value'; ";
  </code></pre>
  
  <p>How can I set my <code>hiddenDescriptionField</code> from <code>descriptionField</code> using javascript?</p>