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

  • Home
  • SEARCH
  • 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 8739655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:58:42+00:00 2026-06-13T10:58:42+00:00

I was working on creating checkbox inside checkbox which all should appear inside a

  • 0

I was working on creating checkbox inside checkbox which all should appear inside a dropdownlist box. I was succeeded in creating a couple of checkboxes inside a dropdownlist box. follow the link http://vignesh.gvignesh.org/metroplots/drp/drpcheck.php

Now i am trying to create a checkbox which should appear once user clicks one checkbox. For instance if user checks documents then a couple of checkbox should appear below that checkbox.

Eg.  []Documents  (if user checks main,  the sub checkboxes should appear)
           []Doc 1 
           []Doc 2
           []Doc 3
     []Phots (if user checks) 
           []photo 1
           []photo 2
           []photo 3

How to attain this through javascript or jquery.

Thanks in Advance. !!

  • 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-13T10:58:43+00:00Added an answer on June 13, 2026 at 10:58 am

    There are different ways to do this. This is what I have done:

    <html>
    
        <head>
    
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    
            <script type="text/javascript">
    
                $(document).ready(function(){
    
                    $('.team').on('click',function(){
                        if($(this).is(':checked')){
                            $(this).next().next().show();
                        }else{
                            $(this).next().next().hide();
                        }
                    });
                });
    
    
            </script>
    
        </head>
    
        <body>
    
            <form name="FootballClubs">
    
                <input type="checkbox" class="team" value="RealMadrid"/>Real Madrid<br />
                <div style="padding:10px 10px 10px 15px;display:none;">     
                    <input type="checkbox" class="player" value="CR"/>Cristiano Ronaldo<br />
                    <input type="checkbox" class="player" value="SA"/>Shabi Alanso<br />
                    <input type="checkbox" class="player" value="IC"/>Iker Casillias<br />
                </div>  
                <input type="checkbox" class="team" value="ManCity"/>Man City<br /> 
                <div style="padding:10px 10px 10px 15px;display:none;">
                    <input type="checkbox" class="player" value="SA"/>Sergio Aguero<br />
                    <input type="checkbox" class="player" value="SM"/>Super Mario<br />
                </div>
            </form>
    
        </body>
    
    </html>
    

    This is fully working example. Also, you can unchecked the checked elements, when they are hidden again.

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

Sidebar

Related Questions

I am creating a table based on result from servlet, which contains a checkbox
I am working on creating a form section which shows input fields (either text
I am working on creating a form which pulls data from a database, and
I'm working on creating a datagrid that has a checkbox column. I have some
I am working on creating a progress bar for ffmpeg in java. So for
I'm working on creating a windows service that will send emails to a customer
I am working on creating a blog with ASP.Net 4, MVC 3, Razor and
I'm working on creating a map of Day Z (the game) with leaflet JS
I'm currently working on creating a Download Manager for Android. In order to optimize
I'm working on creating a self updating application and one issue I'm running into

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.