How to write code below as jquery?
<p>How can I write the code below as a jquery:</p>

<pre><code>var imagefile = document.getElementsByClassName("fileImage");
var filename = imagefile.files[0];
</code></pre>

<p>I attempted this below but it says it is not defined even though I have already stated file input's class is 'fileImage'.</p>

<pre><code>var filename = $('.fileImage').files[0];
</code></pre>
