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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:55:06+00:00 2026-06-18T22:55:06+00:00

There are some divs with there background divs. By Clicking on settings the current

  • 0

There are some divs with there background divs. By Clicking on settings the current divs hide and the background div displays. When I re arrange the divs (Divs are sorttable). The background divs retains its original position. And then when I want to see its background (Settings div)it rotates it from the old position

The script that rotates

      $('.flip_div').click(function() {
        var div1 = $(this).parent();
        var div2 = $('#'+$(this).attr('attached-with'));
        var toHide = div1.is(':visible') ? div1 : div2;
        var toShow = div2.is(':visible') ? div1 : div2;

        toHide.removeClass('flip in').addClass('flip out').hide();
        toShow.removeClass('flip out').addClass('flip in').show();
    });

FIDDLE

Re arrange the divs then click on settings to see the problem

  • 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-18T22:55:07+00:00Added an answer on June 18, 2026 at 10:55 pm

    You can simply wrap both back and front panels with a single element and make it a target of sorting.
    So, HTML (see <div class="single_panel"> around back and front section):

    <div class="single_panel">
                <section id="pannel_front_1" class="pannel">
                    <h4 class="pannel_title">Pannel 1</h4>
                    <span class="flip_div div_menu" attached-with="pannel_back_1" >Settings</span>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, consequat.</p>
                </section>
    
                <section id="pannel_back_1" class="pannel" style="display:none">
                    <h4 class="pannel_title">Back Side 1</h4>
                    <span class="flip_div div_menu" attached-with="pannel_front_1">back</span>
                        <p>Back Side.</p>
                 </section>
            </div>
    

    CSS for that new element:

    .single_panel{
        overflow:hidden;
        width: 100px;
        float:left;
    }
    

    And updated sortable init code:

    $(document).ready(function(){
        $(function() {
            $( "#sidebar" ).sortable({
              connectWith: ".single_panel",
            }).disableSelection();
          });
    

    Demo: http://jsfiddle.net/AFfNV/3/

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

Sidebar

Related Questions

I have some divs and each one has its own background image. The base
There is a div #container which contains various divs with large background images, I
I'm using Twitter Bootstrap. In IE there is no padding for some divs. I
Some 'buttons' (divs with background images) on my webpage have shadow effects in the
Background / Goal I some divs. On each of these divs, I'd like to
Are there some good resources tutorials or anyone has tried to implement a Capcha
Is there some way to define an abstract type as a parameter in an
Is there some kind of software that I can feed uploaded images to and
Is there some crucial difference in writing the registry class in MVC with magic
Is there some way to use Tuning Advisor for SQL Express? Is there some

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.