jquery - small issue when submitting form
<p>I am using the following jquery snippet to display an image on my upload form while it is processing and everything works fine except the image is shown even when the file field is empty so I was wondering how I could change this function to only show the image if the field was not empty.</p>

<p>Thx.</p>

<pre><code>&lt;script&gt;
 $(document).ready(function() {
 $("form").submit(function() {
  $("#loadingbox").show(); 
    return true; 
  }); 
});
 &lt;/script&gt;
</code></pre>
