one 6条回答 南笙 (楼主) 2021-01-12 12:55 demo http://jsfiddle.net/QRv6d/13/ APi link: http://api.jquery.com/prop/ Please try this, this should help code $(".ui-droppable").each(function () { if($(this).prop("id").length > 0) { alert('here'); } }); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
demo http://jsfiddle.net/QRv6d/13/
APi link: http://api.jquery.com/prop/
Please try this, this should help
code
$(".ui-droppable").each(function () { if($(this).prop("id").length > 0) { alert('here'); } });