Empty file fields
i must check all :file fields, all fields must be not empty. i use code
function CheckFiles() {
var t = $('开发者_StackOverflow社区.uploadElement:empty').size();
alert(t);
}
but t return all uploadElement elements count. how to get empty :file fields?
sorry my english
this should return all empty file inputs
$('input:file[value=""]')
or
$(':[value=""].uploadElement')
$('input.uploadElement:file').is(":empty");
精彩评论