get id parameter and increment count for each click in jquery
- by Jean
Hello,
I want to get the id value of c_i. And each time c_i is clicked I want to increment the value at chk_count, using jquery
<div id='d<? echo $i; ?>' style='margin-bottom:8px; border:#cccccc thin solid; height:25px;'>
<span style='color:#cccccc; margin-right:5px;'><? echo $i; ?></span>
<span><? echo $row_dw_all['d1e']; ?></span>
<span style='position:absolute;right:0px;'>
<input type='checkbox' name='c_i<? echo $i; ?>' id="c_i<? echo $i; ?>" value='<? echo $row_dw_all['dle']; ?>'>
</span>
</div>
<input type="hidden" name="chk_count" id="chk_count" value="" />
Thanks
Jean