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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:44:20+00:00 2026-06-11T21:44:20+00:00

I have 3 radiobutton in my HTMl and 3 differents of combo box .

  • 0

I have 3 radiobutton in my HTMl and 3 differents of combo box . I want Crtl enable/disable of combo box through radiobutton. For example, when I click on G1 radio button only g1 combo box is enable & others are disable. How do I this with JS !?

<input type="radio" name="g1" value="g1"> G1
<input type="radio" name="g2" value="g2"> G2
<input type="radio" name="g3" value="g3"> G3


<select name="g1">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>

<select name="g2">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>

<select name="g3">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
  • 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-11T21:44:21+00:00Added an answer on June 11, 2026 at 9:44 pm

    Try this code in jQuery this works fine:

    <script type="text/javascript" language="javascript">
        $(document).ready(function(){
            $('.radio').click(function(){
                $('.radio').not(this).removeAttr("checked");
                var id="select_"+$(this).attr('id');
                $('select').removeAttr("disabled");
                $('select').not("#"+id).attr('disabled','true');
            });
        });
    </script>
    

    html:

    <input type="radio" name="g1" value="g1" class="radio" id="g1"> G1
    <input type="radio" name="g2" value="g2" class="radio" id="g2"> G2
    <input type="radio" name="g3" value="g3" class="radio" id="g3"> G3
    
    
        <select name="g1" id="select_g1">
        <option value="one">one</option>
        <option value="two">two</option>
        <option value="three">three</option>
        </select>
    
        <select name="g2" id="select_g2">
        <option value="one">one</option>
        <option value="two">two</option>
        <option value="three">three</option>
        </select>
    
        <select name="g3" id="select_g3">
        <option value="one">one</option>
        <option value="two">two</option>
        <option value="three">three</option>
        </select>
    

    JSFIDDLE:
    *http://jsfiddle.net/Xbcvh/*

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

Sidebar

Related Questions

I have a few radio buttons <p>@Html.RadioButton(selected, img)img @Html.RadioButton(selected, input)input @Html.RadioButton(selected, script)script @Html.RadioButton(selected, link)link
i have big table with many html items such as select, textbox, radio-button, checkbox.
I have a HTML radio button inside a repeater. I'm facing two problems: When
Situation:- I have created a RadioButton group. When a User selects a radio button
I have radiobutton in Silverlight 3 with FontSize=20. Within the control the radio dialog
I have multiple radiobutton lists within a fieldset tag. I only ever want one
I have a radio button list and some of the labels are quite long
I have an html form with: <input name=gender dojoType=dijit.form.RadioButton id=male checked=checked>male <input name=gender dojoType=dijit.form.RadioButton
I have a radiobutton set called 'daypattern'. Clicking on it should enable the checked
Good morning. I have the following conditions in radiobutton <td> @Html.RadioButtonFor(model => model.ImagensSelecionadas, new

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.