Determine number of divs with jQuery
<p>I'm using jQuery Tools (<a href="http://flowplayer.org/tools/index.html" rel="nofollow">http://flowplayer.org/tools/index.html</a>) to create tooltips, I've created a js-file that holds the following lines:</p>

<pre><code>$("div#example-0").tooltip('#example-0-tooltip');
$("div#example-1").tooltip('#example-1-tooltip');
$("div#example-2").tooltip('#example-2-tooltip');
$("div#example-3").tooltip('#example-3-tooltip');
</code></pre>

<p>etc.</p>

<p>This works fine if there's a known number of example-divs, however I would like this to work with an unknown number of example-divs.</p>

<p>Basically I would like my jQuery to be able to read the DOM-tree and determine how many example-divs there is and somehow loop through them all and add the tooltip.</p>

<p>Anyone know how to do this?</p>
