views:

319

answers:

2

hello,

plz guide me how I can enable or disable asp.net validation controls using jQuery from client side. It is required to do so that valdiations can be done on button press.

thanks

+1  A: 

Hey,

Pretty easy with javascript, just needs adapted to use JQuery:

http://ajaxblog.com/archives/2009/01/09/aspnet-disable-enable-validator-using-javascript http://www.willasrari.com/blog/use-client-side-javascript-to-disable-aspnet-validators/000289.aspx

Brian
A: 

its pretty easy using javascript, use ValidatorEnable function of javascript

ValidatorEnable(document.getElementById('<%=requiredFieldValidator.ClientID%>'),false);

also you can check this http://www.dotnetspider.com/resources/3139-Enable-or-Disable-Asp-validation-control-using.aspx

Muhammad Akhtar