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
and
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');
$("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');
相关文章推荐
- give two sorted array, find the k-th smallest element of union of A and B
- After the clone, you can list the tags with git tag -l and then checkout a specific tag: git checkout tags/<tag_name>
- Find the Minimum Element in A sorted and Rotated Array
- The :before and :after pseudo-elements
- IE 8 HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
- IE8 下 HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
- Spring 2.0.8 和 2.5 applicationContext.xml 头文件写法 Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Changes in behavior of the SysPrep and RIPREP tools after you install Windows XP Service Pack 2
- Find the difference between two days in days, months and years
- ABAP code to find all the User Exits and BADIs for any transaction
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Changes in behavior of the SysPrep and RIPREP tools after you install Windows XP Service Pack 2
- Unable to find the report in the manifest resources. Please build the project, and try again.
- IE 8 HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
- Before, after, each row and table level triggers [Oracle]
- javascript错误解决:Unable to modify the parent container element before the child element is closed
- Find the Kth smallest element
- Find out all the Primary Key and Foreign Key Constraints in a table
- find element in both array and vector using one myfind function
- Unable to modify the parent container element before the child element is closed