jquery selection of elements with no visible children

Here's my goal: do something on an element, an ``, if all of its children are invisible. My code below outlines the in red if it has *any* invisible children. But I want to do so only if *all* the children are invisible. If the element has any children that are visible, then don't highlight it. How can I tweak the jQuery selector to do that? Thanks in advance. Screenshot of image here: http://img144.imageshack.us/img144/556/selectexample.gif

以上就是jquery selection of elements with no visible children的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准