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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:11:14+00:00 2026-05-16T09:11:14+00:00

I have 9 boxes (div) on a page. I am able to move them

  • 0

I have 9 boxes (div) on a page. I am able to move them to different positions, in a grid like fashion.

So the basic sortable functionality is fine =)

But I have a couple of questions:

What if my boxes vary in width? Which they can do, if one changes the width (1/3, 2/3 and 3/3). Can I still have one 2/3 box and a 1/3 box on the same row but different column? What about the placeholder highlight?

Why can’t I move a box to an empty “ul”? I can’t see the placeholder nor move a box to an empty column? This should work?

I also want my boxes to “ease” to a high-lighted placeholder when moving the box. Right now they just snap to the placeholder.

My current code:

<script type="text/javascript">
    $(function() {
        $("ul.connectedSortable").sortable({handle:'.kpiValueContainer'});
        $("ul.connectedSortable").sortable({connectWith:'ul'});
        $("ul.connectedSortable").sortable({placeholder:'ui-state-highlight'});
    });
</script>
  • 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-16T09:11:14+00:00Added an answer on May 16, 2026 at 9:11 am

    There are a couple of problems I see in your script. You are creating a sortable 3 times. Just put all the options in 1 line of code.

    <script type="text/javascript"> 
        $(function() { 
            $("ul.connectedSortable").sortable({handle:'.kpiValueContainer', connectWith:'trysomethingelse', placeholder:'ui-state-highlight', revert: true});
        }); 
    </script>
    

    Second problem I see is your connectWith property. It’s too broad and will also apply to your own ul.connectedSortable. I would rather use something more specific like an id or a class.

    For the easing stuff take a look at the revert option.

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

Sidebar

Related Questions

I currently have two text boxes which accept any number. I have a text
VB 2008. I have several text boxes on a form and I want each
I have a few combo-boxes and double spin boxes on my Qt Dialog. Now
I have a few text boxes and buttons on my form. Lets say txtBox1
I have a dl containing some input boxes that I clone with a bit
I have expanders that contain text boxes, the text boxes use the wpf validation
I have an ASP.NET Datagrid with several text boxes and drop down boxes inside
I have a form in VB6 with two combo boxes (cboCustomer and cboItemNumber). When
I have a program which needs installing on windows 64 boxes. Most of the
I have my web browsers set to save what I type into text boxes

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.