简体   繁体   中英

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

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

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

customvalidtor1..ErrorMessage = "Error"

This will change error message for CustomValidator. How can we do same using client-side function? I have tried hard but did not find any answer.....

我试过,它对我来说很好。这个问题有一个简单的解决方案

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM