Home >Web Front-end >JS Tutorial >jQuery prev ~ Introduction to using siblings selector_jquery

jQuery prev ~ Introduction to using siblings selector_jquery

WBOY
WBOYOriginal
2016-05-16 17:26:051238browse

1. prev ~ siblings: matches all siblings elements after the prev element
2.
(1) prev: any valid selector
(2) siblings: a selector, and it serves as the first selection Siblings of the device
3. Example
(1) Source code
siblings.html

Copy code The code is as follows :





prev ~ siblings selector












Remember password




(2) The results are displayed as follows
jQuery prev ~ Introduction to using siblings selector_jquery
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn