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

  • SEARCH
  • Home
  • 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 8981081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:14:41+00:00 2026-06-15T20:14:41+00:00

I have a RadioButtonList control in a web user control and it is loaded

  • 0

I have a RadioButtonList control in a web user control and it is loaded in a place holder of web page. The radio button list items will be loaded dynamically and the user can select any item.

As per the radio button behavior, we want to select another item to deselect already selected item. But I want to deselect an item if the user clicked on same item itself if it was already checked.

Also I have to do it using javascript not Server side code.

  • 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-06-15T20:14:43+00:00Added an answer on June 15, 2026 at 8:14 pm

    Add this javascript function in <Head> tag.

    <script type="text/javascript">
    
    
            function clearRadioButtonList() {
    
                var elementRef = document.getElementById('<%= yourRadioButtonListID.ClientID %>');
                var inputElementArray = elementRef.getElementsByTagName('input');
    
                for (var i = 0; i < inputElementArray.length; i++) {
                    var inputElement = inputElementArray[i];
    
                    inputElement.checked = false;
                }
                return false;
            }
    
        </script>
    

    When you dynamically add listitem, add onclick attribute to listitem:

    myListItem.Attributes.Add("onclick", "clearRadioButtonList");
    

    Don’t forget to replace “yourRadioButtonListID” in javascript function.
    This will uncheck the clicked radio button if it is checked.

    Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of radio button, not radiobuttonlist, I need to find out
I have a page with a radiobuttonlist and textarea. data is displayed dynamically within
Can we get the count of total radiobuttonlist items from .aspx page. I have
I have created a web page which will add an Indian rupee symbol to
I have a radiobuttonlist that lives on a user control. This user control lives
I have a repeater that holds a Radio button list, a textbox and a
I have an ASP.NET web page with a databound RadioButtonList. I do not know
I have a RadioButtonList control and I would like to do a Javascript confirm
I have a RadioButtnList. I want change body background color based on radio button
I have a RadioButtonList in an UpdatePanel. Say I click the second button (value

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.