jquery选择器,节点函数

附近节点获取

  1. 父节点
$().parent(); // 直接父节点
$().parents('tr:first'); // 第一个tr父节点
  1. 子节点
$().children();
$().find(':checkbox'); // CheckBox的子节点
  1. 兄弟节点
$().prev(); // 
$().prevAll();
$().next();
$().nextAll();
原文地址:https://www.cnblogs.com/zhuxiang1633/p/13809175.html