Blogger Information
Blog 175
fans 1
comment 0
visits 385858
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
jQuery判断div中是否有内容
dxp2tq的博客
Original
3116 people have browsed it

jQuery判断div中是否有内容:

if($("#fileList").find("li").length == 1){//如果id为fileList的div中包含“XXX”的ul标签中的没有找到li标签,就证明是没有内容的
   /*alert("有内容");*/    
}

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post