How to append text to Div form jQuery in asp.net?

enroftFortart

New Member
How to add \[code\]CheckBox\[/code\] Name to \[code\]Div control\[/code\] when Check box \[code\]Checked\[/code\] status true through JqueryI've tried the below code. but not get the result.ASP CODE:\[code\]<div align="center" id="chkBoxes"> <asp:CheckBox ID="chbIceCream" Text ="Ice Cream" runat="server" /> <asp:CheckBox ID="chbCake" Text ="Cake" runat="server" /> <asp:CheckBox ID="chbChocolet" Text ="Cho colet" runat="server" /></div><div id="ContentDiv"></div>\[/code\]Jquery CODE:\[code\]$(document).ready(function () { $('#chbIceCream').click(function () { debugger; var Text = $('#chbIceCream').text(); if ($(this).attr('checked')) $('#ContentDiv').append(Text); });});\[/code\]If any one help in that please .
 
Back
Top