title: how to check if a file is selected using javascript?
body: <p>In php this is how you would check if a file is selected:</p>
  
  <pre><code>$_FILES['item']['size']&gt;0
  </code></pre>
  
  <p>what about in JavaScript?</p>
  
  <p>I need to know because I have a function that will only work if a file is selected.</p>