title: jQuery write in a text input
body: <p>I have a form upload</p>
  
  <p>I need a jQuery function that will write in a hidden text input what is written in the input file.</p>
  
  <p>So I have :</p>
  
  <pre><code>&lt;input class="addFile" id="field2" name="fileLyric" type="file" /&gt;
  </code></pre>
  
  <p>Whatever will be written there by the uploading (obviously the file path) should be then automatically written in a hidden text input</p>
  
  <pre><code>&lt;input id="field2hidden" name="fileLyrichidden" type="text" style="display:none"/&gt;
  </code></pre>
  
  <p>Is there a way to achieve this?</p>
  
  <p>Thank you!</p>