Enable/Disable RequiredFieldValidator with Javascript

 ValidatorEnable(document.getElementById("RequiredFieldValidator1"), true);
 ValidatorEnable(document.getElementById("RequiredFieldValidator2"), false);

 ValidatorEnable(document.getElementById("RequiredFieldValidator1"), false);
 ValidatorEnable(document.getElementById("RequiredFieldValidator2"), true);

2 thoughts on “Enable/Disable RequiredFieldValidator with Javascript

  1. Woah! I’m really loving the template/theme of this website. It’s simple,
    yet effective. A lot of times it’s hard to get that “perfect balance” between usability and visual appeal. I must say you have done a awesome job with this. In addition, the blog loads super quick for me on Chrome. Excellent Blog!

  2. I simply want to say I am just beginner to blogging and seriously loved this web site. Probably I’m going to bookmark your blog post . You definitely come with beneficial writings. Many thanks for revealing your webpage.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s