D3:Learning:Selectors:selectAll
A starting point to clone and get investigating quickly.
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
<div id="exSelect">
<p>Uno</p>
<p>Dos</p>
</div>
JavaScript
jQuery(document).ready(function() {
//Use d3:
d3
//Within the exSelect, select a p element (we are not using selectAll):
.selectAll("#exSelect p")
//OK:.select("#exSelect > p")
//NOT OK: .select("#exSelect.p")
//And stye it:
.style("color","red");
console.log(d3.selectAll("p"));
});