Change error message for ASP.NET custom validator using javascript (client side validation)?

How to change error message for ASP.NET custom validator using javascript (client side validation)?

I know that we can easily change it with a server side function ie

customvalidtor1..ErrorMessage = "Error" 

This will change the error message for CustomValidator. How can we work with a client function? I tried hard, but could not find the answer .....

+6
source share
1 answer

I tried and it works great for me. This is a simple solution to this problem.

 $(source).text("* Not a NA Phone #"); 
+5
source

All Articles