开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜