asp.net - Check box not called by jquery -
I have the following web pages that have a check box and text box
`< ; ASP: Checkbox ID = "CcCCLIII" run = "server" text = "email cc list" /> & Lt; / TD & gt; & Lt; Td> & Lt; ASP: Text Box ID = "TSTEEM" system = "multiline" runat = "server" maxlend = "200" height = "70px" width = "201px" enabled = "wrong" & gt; & Lt; / ASP: text box & gt; & Lt; Asp: RegularExpressionValidator ID = "Regular Expression Vendor" runat = "server" controltovalend = "TSTEMmail" errormax = "
Please enter a valid email." ValidationExpression = "\ w + ([-. +] \ W +) * @ \ w + ([-.] \ W +) * \ \ w + ([-.] \ W +) * (. [;] \ S * \ w + ([- +.] \ W +) * @ \ w + ([-.] \ W +) * \ \ w + ([-.] \ W +) *) * & gt; ; & Lt; / ASP:. RegularExpressionValidator & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; / Td> & Lt; / Tr & gt; `
Jquery Code:
$ ('#ChkCcList'). Click (function () {if (! $ (This). This (': check')) {this.checked = confirm ("are you sure?");}});
`
Can you please tell me why this is not called when the check box is clicked
You have an ASP.NET control, so that you do not use the ID.