您的位置:首页 > 其它

Find the element before and after a specific element

2014-07-07 23:38 363 查看
http://stackoverflow.com/questions/929670/find-the-element-before-and-after-a-specific-element

$("li.active").next();


and
$("li.active").prev();

Also, if you want to specificly find the next and previous li item, you can
just give the methods a selector: $('li.active').next('li');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐