Finds all divs that are siblings after the element with #prev as its id. Notice the span isn't selected since it is not a div and the "niece" isn't selected since it is a child of a sibling, not an actual sibling.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
div (doesn't match since before #prev)
span#prev
div sibling
div sibling
div niece
span sibling (not div)
div sibling
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself