<%@ page language= "C #" autoeventwireup= "true" codefile= "Default2.aspx.cs" inherits= "DEFAULT2"%>
<! DOCTYPE html>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title></title>
<script src= "Scripts/jquery-1.10.2.min.js" ></script>
<script type= "Text/javascript" >
$ (function () {
$ ("input[type= ' checkbox ']"). Click (function () {
var Lvalue = $ (this). Val ();//Get Value values
alert (lvalue);
var lname = $ (this). Next (). text ();//Get text value
var Yuangong = document.getElementById ("TextArea1");
Yuangong.value = Yuangong.value + lname;
}
);
});
</script>
<body>
<form id= "Form1" runat= "Server" >
<div>
<textarea id= "TextArea1" cols= "rows=" 6 "></textarea>
<br/>
<asp:checkboxlist id= "CheckBoxList1" runat= "Server" >
<asp:listitem value= "Sddsds" >2</asp:ListItem>
<asp:ListItem>1221</asp:ListItem>
<asp:ListItem>4343</asp:ListItem>
<asp:ListItem>4343</asp:ListItem>
<asp:ListItem>gg</asp:ListItem>
<asp:ListItem>gfgfgf</asp:ListItem>
</asp:CheckBoxList>
</div>
</form>
</body>