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.

You will need to see ChkCcList.ClientID to get the provided ID.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -