We can select the list items, then filter them based on their contents:
1 2 3 $('li').filter(function(index) { return $('strong', this).length == 1; }).css('background-color', 'red');转载于:https://www.cnblogs.com/yanjunwu/archive/2013/04/12/3015855.html
相关资源:HTML5文件上传组件美化jQuery插件