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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:06:24+00:00 2026-06-08T21:06:24+00:00

I am using spring with ibatis and jsp page for presentation. My question is

  • 0

I am using spring with ibatis and jsp page for presentation. My question is I have one jsp page and the value of a drop list I am rendering through the model attribute, as shown below.

<select id="describe" style="width: 500px;">
    <c:forEach var="aff" items="${droplist}">
        <option name="category" value="${aff.community_category_id}">
            ${aff.category}
        </option>
    </c:forEach>
</select>

And here is my radio button:

<input type="radio" id="class" name="type" value="1" checked>Class
<input type="radio" id="Club" name="type" value="2">Club
<input type="radio" id="Course" name="type" value="3">Course
<input type="radio" id="Community" name="type" value="4">Community

On clicking any radio button it needs to change the content of the dropdown list.

Any idea I am not getting.

Thanks.

  • 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-08T21:06:25+00:00Added an answer on June 8, 2026 at 9:06 pm
            <head>
                <title>prova</title>
                <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
                <script>
                        var listA=[{name:'name1a', value:'value1a'}, {name:'name2a', value:'value2a'}, {name:'name3a', value:'valuea3a'}];
                        var listB=[{name:'name1b', value:'value1b'}, {name:'name2b', value:'value2b'}, {name:'name3b', value:'valuea3b'}];
                        var listC=[{name:'name1c', value:'value1c'}, {name:'name2c', value:'value2c'}, {name:'name3c', value:'valuea3c'}];
                </script>
                <script>
                $(document).ready(
                        function() {
                                $(':radio').bind('click',function(){
                                        $('#describe')
                                                .find('option')
                                                .remove()
                                                .end();
                                        $.each(listA, function(index, value) {
                                                $('#describe').append('<option value="'+value.value+'">'+value.name+'</option>');
                                        });
    
                                });
                        });
                </script>
        </head>
        <body>
                <div>
                <select id="describe">
                        <option name="name" value="1">a</option>
                        <option name="name" value="2">b</option>
                </select>
                </div>
                <div>
                        <input type="radio" id="class" name="type" value="1" checked>Class <br/>
                        <input type="radio" id="Club" name="type" value="2" >Club<br/>
                        <input type="radio" id="Course" name="type" value="3">Course<br/>
                        <input type="radio" id="Community" name="type" value="4">Community<br/>
                </div>
        </body>
    

    this’ll just change the content of the describe selet every time you click on one of the radio button and load new values/names taken from listA object

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

Sidebar

Related Questions

I am using spring mcv with ibatis and jsp for viewing. my question is
Using Spring 2.5 tag library, I have an Integer value in a command form
I am using spring and I have a child model with a objectify key
I am using spring mvc in my application,when i created user i have to
I am using Spring MVC with Hibernate. My page has a button that creates
Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on
Using Spring 3 MVC and JSP, I simply want to test if a user
Using: Spring 3.1.0.RELEASE, Spring Data MongoDB 1.0.0.RELEASE I have a document class defined like
Using Spring 3 I have two forms: adding Item and invalidating Item I have
Environment: The application is using Spring Framework 2.5.6.SEC01 and iBatis 2.3.4.726. It is MVC

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.