Hi,

I have a file upload field on my form and I am trying to check whether it is empty or not. The following code works

Code:
if (document.getElementById('logo').value == '') {
but the following does not

Code:
if ($('#logo').val() == '') {
Am I missing something?

EDIT: I forgot to include jQuery file It works now.