Need to check if a file input
has a file attached.
This code doesn't work:
<input type="file" name="logo">
if ($('input[type=file]').length > 0) {
if($(this).val() == '') {
alert('Vide');
}
else {
alert('Pas Vide');
}
}
Any help please ?