Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4033350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:50:14+00:00 2026-05-20T11:50:14+00:00

i have a panel which iam showing as pop up with few textbox controls

  • 0

i have a panel which iam showing as pop up with few textbox controls with several validation controls and button on clicking which i am checking for validation now i want to add a checkbox on checking it it should disable some of the controls and remove the validation properties from them and on unchecking it apply the same i am able to make those controls disabled but still on clicking that button it is asking for validating those controls

on the click event of checkbox i am calling one javascript function and applying the disabled attribute to some of the controls

function disableOtherElements(e)
{
    var id = e.checked;
    if (id)
    {
        $('.dd').attr('disabled', true);
    }
    else
    {
        $('.dd').removeAttr('disabled');
    }
}

dd is the class assigned to all the controls that i want to be disabled.
what i have to do to remove the validation properties

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:50:15+00:00Added an answer on May 20, 2026 at 11:50 am

    One way to achieve that would be to use the client-side API exposed by the ASP.NET validators.

    First, you’ll have to iterate over Page_Validators to locate all the validators that target your elements, then use ValidatorEnable() to enable or disable validation:

    function enableValidation(element, enable)
    {
        $.each(Page_Validators, function() {
            if (this.controltovalidate == element.id) {
                ValidatorEnable(this, enable);
            }
        });
    }
    
    function disableOtherElements(e)
    {
        if (e.checked) {
            $('.dd').each(function() {
                enableValidation(this, false);
            }).attr('disabled', true);
        } else {
            $('.dd').each(function() {
                enableValidation(this, true);
            }).removeAttr('disabled');
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a panel on an aspx page which contains an UpdatePanel. This panel
I have a Panel and I am adding controls inside this panel. But there
I have a graffiti blog and i have a strange problem which is showing
I have created the custom control which is just a panel that I will
I have a website which is in PHP. Now, I am trying to publish
In my form I have a listview and a panel which is used as
I have an AJAX application which has used CSS divs to create panels on
I have an Panel control that I need to maintain position across postbacks. I
i have a flow panel that i'm adding extra items to it at runtime
I have a flowlayout panel and on a resize event, I resize all the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.