jQuery - Detecting if a file has been selected in the file input
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1299052/jquery-get-the-file-name-selected-from-input-type-file">jQuery: get the file name selected from &lt;input type=&ldquo;file&rdquo; /&gt;</a>  </p>
</blockquote>



<p>I have a standard file input box</p>

<pre><code>&lt;input type="file" name="imafile"&gt;
</code></pre>

<p>I also have a bit of text down the page like so</p>

<pre><code>&lt;span class="filename"&gt;Nothing selected&lt;/span&gt;
</code></pre>

<p>I was wondering if it is possible to have the text update with the name of the file selected in the file input box?</p>

<p>Cheers,</p>
