nth selector jquery displaying nth value
<p>I want to be able to choose an nth child from a list of spans and display their nth value (or position) on button click.</p>

<p>So if I have:</p>

<pre><code>item a
item b
item c
item d
item e
</code></pre>

<p>on button press I want it to display: </p>

<pre><code>1 item a
2 item b
3 item c
4 item d
5 item e
</code></pre>

<p>is this possible and if so how? </p>

<p>The HTML (from answer below)</p>

<pre><code>&lt;div class="items"&gt;item a&lt;/div&gt;
&lt;div class="items"&gt;item b&lt;/div&gt;
&lt;div class="items"&gt;item c&lt;/div&gt;
&lt;div class="items"&gt;item d&lt;/div&gt;
&lt;div class="items"&gt;item e&lt;/div&gt;
</code></pre>
