码迷,mamicode.com
首页 > Web开发 > 详细

jQuery选择函数

时间:2018-12-13 21:46:23      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:find   end   strong   函数   ext   query   sibling   next   span   

jQuery选择函数
  1.$(‘#some-id‘).parent() 选择特定元素的父元素
  2.$(‘#some-id‘).next()  选择特定元素最近的下一个同级元素
  3.$(‘#some-id‘).siblings() 选择特定元素的所有同级元素
  4.$(‘#some-id‘).find(‘.some-class‘) 选择特定元素下所有包含特定类的元素
  5.$(‘#some-id‘).find(‘td‘).not(‘:contains("Henry")‘) 选择特定元素下表格内容不包含Henry的所有元素
  5.$(‘#some-id‘).find(‘td‘).not(‘:contains("Henry")‘).end()  .end()表示回到最后一次.find()的元素处

jQuery选择函数

标签:find   end   strong   函数   ext   query   sibling   next   span   

原文地址:https://www.cnblogs.com/xiaohu666/p/10116529.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!