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 863351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:17:40+00:00 2026-05-15T09:17:40+00:00

I have two radiobuttonlist and one checkboxlist on the page. Ideally based on the

  • 0

I have two radiobuttonlist and one checkboxlist on the page. Ideally based on the checkbox selected value, I want to enable/disable corresponding radibuttonlist with jquery function.

But some how $(“input[name*=” + columnName + “]”) always return null. It can not find the radiobuttonlist by its name?

    $(function() {
        function checkBoxClicked() {

            var isChecked = $(this).is(":checked");
            var columnName = "rblColumn" + $(this).parent().attr("alt");

            if (isChecked) {
                $("input[name*=" + columnName + "]").removeAttr("disabled");
            } else {
                $("input[name*=" + columnName + "]").attr("disabled", "disabled");

                $("input[name*=" + columnName + "] input").each(function() {
                    $(this).attr("checked", "")
                });

            }

        }

        //intercept any check box click event inside the #list Div
        $(":checkbox").click(checkBoxClicked);
    });




<asp:Panel ID="TestPanel" runat="server">
<asp:CheckBoxList ID = "chkColumn" runat="server" RepeatDirection="Horizontal">
    <asp:ListItem id = "Column1" runat="server" Text="Column 1" Value="1" alt="1" class="HeadColumn" />
    <asp:ListItem id = "Column2" runat="server" Text="Column 2" Value="2" alt="2" class="HeadColumn"/>
</asp:CheckBoxList>

<table>
    <tr>
        <td>
            <asp:RadioButtonList ID = "rblColumn1" runat="server" RepeatDirection="Vertical" disabled="disabled">
                <asp:ListItem id="liColumn1p" runat="server" />
                <asp:ListItem id="liColumn1n" runat="server" />
            </asp:RadioButtonList>
        </td>
        <td>
            <asp:RadioButtonList ID = "rblColumn2" runat="server" RepeatDirection="Vertical" disabled="disabled">
                <asp:ListItem id="liColumn2p" runat="server" />
                <asp:ListItem id="liColumn2n" runat="server" />
            </asp:RadioButtonList>
        </td>
    </tr>
</table>
</asp:Panel>

source:

<div id="TestPanel">

<table id="chkColumn" border="0">
        <tr>
            <td><span id="Column1" alt="1" class="HeadColumn"><input id="chkColumn_0" type="checkbox" name="chkColumn$0" /><label for="chkColumn_0">Column 1</label></span></td><td><span id="Column2" alt="2" class="HeadColumn"><input id="chkColumn_1" type="checkbox" name="chkColumn$1" /><label for="chkColumn_1">Column 2</label></span></td>
        </tr>
    </table>

<table>
    <tr>
        <td>
            <table id="rblColumn1" class="myRadioButtonList" disabled="disabled" border="0">
        <tr>
            <td><span id="liColumn1p"><input id="rblColumn1_0" type="radio" name="rblColumn1" value="" /></span></td>
        </tr><tr>
            <td><span id="liColumn1n"><input id="rblColumn1_1" type="radio" name="rblColumn1" value="" /></span></td>
        </tr>
    </table>
        </td>
        <td>
            <table id="rblColumn2" class="myRadioButtonList" disabled="disabled" border="0">
        <tr>
            <td><span id="liColumn2p"><input id="rblColumn2_0" type="radio" name="rblColumn2" value="" /></span></td>
        </tr><tr>
            <td><span id="liColumn2n"><input id="rblColumn2_1" type="radio" name="rblColumn2" value="" /></span></td>
        </tr>
    </table>
        </td>
    </tr>
</table>

</div>
  • 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-15T09:17:40+00:00Added an answer on May 15, 2026 at 9:17 am

    I got it. I added cssclass to each radiobutonlist and find it by id:

    $(“.myRadioButtonList[id*=” + columnName + “]”).removeAttr(“disabled”);

    This is working now. Thanks, Patrick. You remind me about id/name misuse.

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

Sidebar

Related Questions

Have two events: $('body').mouseup(function(e){} and $('.toggle').click(function(e){} I only want one of these to trigger.
i have a asp:radio button with two list items asp:RadioButtonList id=Myradio asp:listitem1 value=li1 asp:listitem2
I have two classes, and want to include a static instance of one class
Have two UIBarButtonItems want to make it as one UIBarButtonItem and toggle between them
I have two jsp page(home.jsp, welcome.jsp). I want to show welcome.jsp on the top
I have a RadioButtonList with two ListItems included: <asp:RadioButtonList runat=server ID=optRollover OnSelectedIndexChanged=RolloverOptionSelected AutoPostBack=true> <asp:ListItem
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two strings both with value null . But when I am comparing
I have two arrays, I want to merge these two arrays into single array.
I have two tables inside a database. One stores unique userNames and a unique

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.