How to apply javascript on checkbox with value total?
<p>I try to print total value which is checked checkbox.
It is already work with <code>input type="checkbox"&gt;</code>
but It have made code with asp:checkbox/>.</p>

<p>I try but it is print NaN.</p>

<p>following code:
four checkbox</p>

<pre><code>&lt;asp:CheckBox runat="server" ID="CheckBox1" Text="Mobile" Value="70" onclick="checkcount(this);" /&gt;
&lt;asp:Label ID="lbltotal" runat="server"   ClientIDMode="Static"&gt;&lt;/asp:Label&gt;
int amount=0;
function checkcount(item)
{                      
      amount += parseInt(document.getElementById(item.id).value);
      alert(amount);
      document.getElementById("lbltotal").innerHTML = amount;
}
</code></pre>
