Biswarup Saha

Biswarup Saha

  • NA
  • 58
  • 31.3k

How to handle dynamic checkbox checkchange using JQuery

Jan 18 2014 12:14 AM
Using this following code checkbox dynamically generate inside a datalist
<asp:DataList runat="server" ID="DataList2" RepeatDirection="Vertical"> 
<ItemTemplate>
<table width="290px">
<tr>
<td width="200px"><asp:CheckBox ID="chkBttn" CssClass="chck_btn" ToolTip='<%# Eval("OptionalServicesDetails")%>' Text='<%# Eval("OptionalServicesName")%>' Checked="false" runat="server" OnCheckedChanged="CheckBox_CheckedChanged1" AutoPostBack="true" /></td>
<td align="right" width="90px"><strong> <asp:Label ID="ExtraPrice" Text='<%# "+Rs"+ Eval("Price")+".00"+" "+Eval("OptionalServicesDetailsExtra") %>' runat="server"></asp:Label></strong> </td>
 </tr> </table>
</ItemTemplate>
</asp:DataList>

using OnCheckedChanged event checkbox value can be received in the server end, but if the same thing i want to do using JQuery ie send checkbox value from client side to server end using JQuery is that possible? if yes then how is that?

Please share your view.
Thanks in advance.

Answers (6)