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.
Thx.
<script>
$(document).ready(function() {
$("form").submit(function() {
$("#loadingbox").show();
return true;
});
});
</script>
1 Answer