<h1>JQuery Selectors</h1>
<p>Just like when you write CSS, in <em>jQuery</em> you need to start by targeting the element you want to affect. Luckily, when selecting elements with <em>jQuery</em> it is much like writing a CSS selector.</p>
<button class="box"></button>
<button class="box"></button>
<div class="box"></div>
<div class="box"></div>
<table>
<caption>JQuery CSS Reference</caption>
<tr>
<th>Selector</th>
<th>Description</th>
</tr>
<tr class="selectors">
<td>.className</td>
<td>Selects all elements with the specified class</td>
</tr>
<tr class="selectors">
<td>#idName</td>
<td>Selects an element with the specified ID</td>
</tr>
<tr class="selectors">
<td>*</td>
<td>Universal selector: selects every element in the document</td>
</tr>
<tr class="selectors">
<td>element</td>
<td>Selects every element of the specified type</td>
</tr>
<tr class="selectors">
<td>parent > child</td>
<td>Selects all children of the parent element</td>
</tr>
<tr class="selectors">
<td>anscestor descendant</td>
<td>Selects all descendants of the parent element</td>
</tr>
<tr class="selectors">
<td>previous + next</td>
<td>Selects the next sibling of the previous element</td>
</tr>
<tr class="selectors">
<td>previous ~ siblings</td>
<td>Selects all siblings of the element</td>
</tr>
<tr class="filters">
<td>:odd</td>
<td>Filters the current selector to only include odd numbered elements</td>
</tr>
<tr class="filters">
<td>:even</td>
<td>Filters the current selector to only include the even numbered matches</td>
</tr>
<tr class="filters">
<td>:first</td>
<td>Filters the current selector to only include the first match</td>
</tr>
<tr class="filters">
...