Platinum Partner

How To Enable Or Disable Asp.net Validation Control Using Javascript

Here is the solution to enable/disable asp.net validation using javascript
 
Suppose i have dropdown which contain list of Asian countries and Other when user are selecting Other than only txtOtherCity is enbled else disable at that i disable required field validation for Other city (rfvOtherCity) 


//Syntax:
ValidatorEnable(ValidatorContronName,Boolean);
//Explanation:
ValidatorContronName:This is ClientID of the Validation control.
Boolean:true(Enable) or false(Disable)
//Example:
ValidatorEnable(document.getElementById('<%=rfvOtherCity.ClientID%>'), false);


Spring Framework
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}