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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:43:57+00:00 2026-06-03T00:43:57+00:00

Basicly theres 2 divs open by default, the one of the left is always

  • 0

Basicly theres 2 divs open by default, the one of the left is always there and then you have 3 radio buttons. Atleast one must be selected (can’t have “default” column all by itself). By default, the “default” div and “1” is there, and “2” and “3” are invisible (display:none). Each radio button is linked to specific div, so when clicked, jQuery will animate width to merge the selected div into the overall div with the other visible divs. How would this be achievable with jQuery?

Picture <—–i have a link to a picture i made for a better understanding

  • 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-03T00:43:58+00:00Added an answer on June 3, 2026 at 12:43 am

    jsFiddle: http://jsfiddle.net/K8TAS/90/

    <input type="checkbox" value="1" checked disabled/>
    <input type="checkbox" value="2"/>
    <input type="checkbox" value="3"/>
    
    <br/><br/>
    
    <div style="height:200px;width:100px;float:left;background:yellow;" class="resizeDiv" id="div0">Default</div>
    <div style="height:200px;width:100px;float:left;background:red;" class="resizeDiv" id="div1">1</div>
    <div style="height:200px;width:100px;float:left;background:blue;display:none;" class="resizeDiv" id="div2">2</div>
    <div style="height:200px;width:100px;float:left;background:green;display:none;" class="resizeDiv" id="div3">3</div>
    
    <script>    
        $("input[type=checkbox]").click( function()
        {
            var amount = 2;
    
            $("input[type=checkbox]").each( function()
            {
                if ( $(this).val() != "1" )
                {
                    if ( $(this).is(":checked") )
                    {
                        $( "#div" + $(this).val() ).show();
                        amount++;
                    }
                    else
                    {
                        $( "#div" + $(this).val() ).hide();
                    }
                }
            });
    
            $(".resizeDiv").each( function()
            {
                $(this).width( 200 / amount );    
            });
        });
    </script>
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one question about Yii framework, and I need your help. Basicly, I
Is there a way in Python, to have more than one constructor or more
I wondering is there an equivalent of this feature from play framework http://www.playframework.org/documentation/2.0/JavaAsync Basicly
I have an odd problem. Basicly my page works fine however after a small
I have a issue with my listview, I basicly want the text in the
You can check page here: http://jsfiddle.net/7JhjN/ Basicly, there is a hell of duplication going
I have been asked to look into dynamic web page development, and there appears
Hi there I have a procedure like so: CREATE PROCEDURE dbo.DWS_PROG ( @fromDate datetime
I am using Navigation framework and basicly got one frame that is used for
Okay, so basicly I have this website that auto refreshes every couple of seconds,

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.