开发者

Empty file fields

开发者 https://www.devze.com 2023-01-04 01:56 出处:网络
i must check all :file fields, all fields must be not empty. i use code function CheckFiles() { var t = $(\'开发者_StackOverflow社区.uploadElement:empty\').size();

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

精彩评论

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