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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:43:00+00:00 2026-05-28T07:43:00+00:00

Here is what the html looks like, I need help writing the jquery? Initially

  • 0

Here is what the html looks like, I need help writing the jquery?
Initially the two divs will not be shown. If a user select the radio button “Bk”, it will show “BreakdownList” div layer. If radio button “One” is select, the “One-on-OneList” div layer is displayed. Users should be allow to toggle back and forth displaying either list.

<b> Monday, May 2, 2011 - Session Two </b>  <br>
<input name="Bk" type="radio" value="Break Out Session" >Break Out Session  <br>
<input name="One" type="radio" value="One-on-One Consulting Session" >One-on-One Consulting Session 
<div class="BreakdownList" style="display:none">
   <input name="1" type="radio" value="Session1">Session 1<br>
   <input name="2" type="radio" value="Session2">Session 2<br>
   <input name="2" type="radio" value="Session2">Session 3<br>
</div>
<div class="One-on-OneList" style="display:none">
    <input name="1" type="radio" value="One1">One on One 1<br>
   <input name="2" type="radio" value="One2">One on One 2<br>
   <input name="3" type="radio" value="One3">One on One 3<br>
</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-28T07:43:01+00:00Added an answer on May 28, 2026 at 7:43 am
    $(':radio').on('click', function () {
        var name = $(this).prop('name');
        switch (name) {
        case 'Bk':
            $('div.BreakdownList').show();
            $('div.One-on-OneList').hide();
            break;
        case 'One':
            $('div.BreakdownList').hide();
            $('div.One-on-OneList').show();
            break;
        default:
            break;
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have html like so: <div class=foo> (<a href=forum.example.com>forum</a>) <p> Some html here.... </div>
not sure why I find this so difficult. Here is the html code: <tr>
i want to enable facebox jquery using javascript. here in normal html <a href=stairs.jpg
Here is the input (html, not xml): ... html content ... <tag1> content for
Once again, I need some help and I appreciate you all for being here
I'm new to jQuery and need some help to show and hide a div
Need a little help here. I'm new to Coldfusion and I use CF6. I
I need some help: I have three separate JQM pages - page1.html, page2.html and
My HTML looks something like this (unfortunately it cannot change because it is being
So, I've found similar questions about JQuery in which you do not need to

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.