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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:31:05+00:00 2026-06-13T12:31:05+00:00

Does anyone know of a jQuery plugin that can meet the following requirement: I

  • 0

Does anyone know of a jQuery plugin that can meet the following requirement:

I have one DIV on the screen and a button.
When I click the button, the DIV splits into 2 (we’ll call these A and B).
Clicking the button again splits the parent DIV into 3 (so now we have A, B and C).

So far so good, however…

Clicking the button again will result with A split into two,
Clicking the button again will result with B split into two,
Clicking the button again will result with C split into two.

So as you can see, with 3 clicks of the button, I’d end up with the master DIV split into 1/3rds.

Clicking the button 4 times would result in having the master DIV containing 2 1/3rd size DIVs and 2 1/6th size DIVs.

I’m sure I’ve seen something similar somewhere, but can’t for the life of me remember where this was.

If anyone has any tips or know of a similar plugin I’d really appreciate it.

  • 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-13T12:31:06+00:00Added an answer on June 13, 2026 at 12:31 pm

    Let me code a prototype for you:

    <div class="wrap">
        <a class="large button blue" id="split">Split!</a>
        <hr>
        <div class="inner">
            Test
        </div> 
    </div>
    

    $('#split').click(function() {
    
        width = parseInt($('.wrap').css('width'))-20;
        $('.wrap').append($('.wrap  .inner').first().clone());
        nDivs = $('.wrap .inner').size();
        $('.wrap  .inner').css('width', width/nDivs);
    
    });
    

    You can try and adjust margins etc: http://jsfiddle.net/mKuVm/4/

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

Sidebar

Related Questions

Does anyone know of a jquery plugin that can make a thumbnail of an
Does anyone know about a jQuery plugin that I can use for uploading mutiple
Does anyone know of a jQuery plugin that can check if text is base64
Does anyone know of a jQuery plugin that has 'helpers' or extensions like those
Does anyone know of a jquery css3 plugin that supports cross browser gradients. All
does anyone know of a javascript/jQuery plugin that will fly elements onto and out
Does anyone know of a jQuery plugin or snippet that will auto-text-align cells in
Does anyone know of any samples that use the DataTables jquery plugin with a
Does anyone know if theres a jquery autocomplete library that works similar to the
Does anyone know of a simple jquery plugin to allow special characters such as

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.