jquery: get value from clicked div
<pre><code>&lt;div&gt;'.$i.'&lt;/div&gt;
</code></pre>

<p>$i is auto generated by loop - which could lead to: </p>

<pre><code>&lt;div&gt;'.$i.'&lt;/div&gt;
&lt;div&gt;'.$i.'&lt;/div&gt;
&lt;div&gt;'.$i.'&lt;/div&gt;
</code></pre>

<p>etc. where each $i is different.</p>

<p>How do I get value of particular $i (using jQuery), when div is clicked.</p>

<p>In standard JS I would use onClick($i).
In jQuery I just do not know, how to pick that val.</p>
