validators fired in asp panel if it is disabled by jQuery

Posted by RohiK under jQuery on 12/16/2011 | Points: 10 | Views : 1662 | Status : [Member] | Replies : 1
Hi all,

I have an <asp:panel> having 2 text box and 2 validators inside this.
I want to disable this panel on checkbox checked event
I done this in jQuery.
but if user uncheck checkbox and enter wronge value in textbox then validators fired.
then if user checked checkbox then i want to disable controls inside panel and validations couldnt fired

but the validators still fires

how to do that????

Happy Programming!!


Posted by: Vuyiswamb on: 12/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

To disable the validators you need to use the property "Enabled" and set it to false

Thank you for posting at Dotnetfunda

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response