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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:55:53+00:00 2026-05-24T23:55:53+00:00

i have a aspnet-mvc web page with a dropdown. The choices in the dropdown

  • 0

i have a aspnet-mvc web page with a dropdown. The choices in the dropdown are:

  • Big
  • Small

next to the dropdown i have a series of radio buttons

      @Html.RadioButton("quantity","12",true)12  
      @Html.RadioButton("quantity","24",false)24 
      @Html.RadioButton("quantity","36",false)36 
      @Html.RadioButton("quantity","48",false)48 

i want to have it when i change the dropdown selection to Small, the list of radio buttons changes to

      @Html.RadioButton("quantity","24",true)24
      @Html.RadioButton("quantity","48",false)48
      @Html.RadioButton("quantity","72",false)72
      @Html.RadioButton("quantity","96",false)96

and if you change the dropdown back to Big, it would change the radio buttons back to the original set above.

what is the best way of doing this? should i have both sets of radio buttons on the page and hide the ones that are not associated with the selected item in the dropdown. Is there a more elegant way of doing this?

  • 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-24T23:55:53+00:00Added an answer on May 24, 2026 at 11:55 pm

    Take a look at this working demo. I think this is what you are looking for.

    Demo

    Mark up

    <select>
        <option value="big">Big</option>
        <option value="small">Small</option>
    </select>
    
    <span id="big">
    <input type="radio" value="24" checked/>12
    <input type="radio" value="24" />24
    <input type="radio" value="24" />36
    <input type="radio" value="24" />48
    </span>
    <span id="small" style="display:none;">
    <input type="radio" value="24" checked/>24
    <input type="radio" value="24" />48
    <input type="radio" value="24" />72
    <input type="radio" value="24" />96
    </span>
    

    Js

    $(function(){
        $("select").change(function(){
            $("#big, #small").hide();
            $("#"+this.value).show();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web page(Not MVC ) (HomePage.aspx) and another page (PRiceList.aspx).I have
I have an ASP.NET MVC web page that has a file upload control. Under
i have an asp.net-mvc web page and i am using jqgrid on the front
I am in a strange problem. I have an asp.net mvc web page. Scenario
Background I have a page on my ASP.NET MVC web app for users to
I have an ASP.NET MVC web app and on one page I wish to
I have an ASP.NET MVC web site. I have many actions which require authentication
I have a Asp.net MVC web application, containing mostly text. I want to put
I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
Here's what I'm trying to do. I have an ASP.NET MVC web application, where

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.