get id parameter and increment count for each click in jquery
<p>I want to get the id value of <strong>c_i</strong>. And each time <strong>c_i</strong> is clicked I want to increment the value at <strong>chk_count</strong>, using jquery</p>

<pre><code>&lt;div id='d&lt;? echo $i; ?&gt;' style='margin-bottom:8px; border:#cccccc thin solid; height:25px;'&gt;
            &lt;span style='color:#cccccc; margin-right:5px;'&gt;&lt;? echo $i; ?&gt;&lt;/span&gt;
            &lt;span&gt;&lt;? echo $row_dw_all['d1e']; ?&gt;&lt;/span&gt;

            &lt;span style='position:absolute;right:0px;'&gt;
            &lt;input type='checkbox' name='c_i&lt;? echo $i; ?&gt;' id="c_i&lt;? echo $i; ?&gt;" value='&lt;? echo $row_dw_all['dle']; ?&gt;'&gt;
            &lt;/span&gt;

            &lt;/div&gt;

&lt;input type="hidden" name="chk_count" id="chk_count" value="" /&gt;
</code></pre>

<p>Thanks
Jean</p>
