I have a list similar to below and would like to only select all of the elements after the #everything_after
element.
<div id="container">
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
<div id="everything_after"></div>
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
<div class="something"></div>
</div>
selects all the elements
CASE-1: when the
id=""
or theclass=""
selector is known:CASE-2: when the index of the item is known:
You can use nextAll to get the following divs.
Try:
See: CSS3 General Siblings Selector
http://reference.sitepoint.com/css/generalsiblingselector