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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:25:50+00:00 2026-06-06T09:25:50+00:00

This is what I got: http://jsfiddle.net/hashie5/vk6rZ/ (don’t mind the layout) The first table is

  • 0

This is what I got:
http://jsfiddle.net/hashie5/vk6rZ/
(don’t mind the layout)

The first table is a combination of the second and third table, and it’s this one that needs to be finished.

The seconds table has sortable (with the arrows).

The third table has selectable (dont click the arrows).

The goal is: when you select multiple items, you should be able to sort them all at the same time.

If it’s to hard because of the tables, an example with lists would be great too.

In the helper function I tried cloning all selected (ui-selected class) items, but that was too buggy

EDIT:
I created a new fiddle: http://jsfiddle.net/hashie5/AZr9Z/
This works nice, but it’s not 100% complete yet

  • 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-06T09:25:51+00:00Added an answer on June 6, 2026 at 9:25 am
    • demo http://so.lucafilosofi.com/jquery-ui-selectable-and-sortable-combined/

    the main code look like below.

    sort : function(event, ui) {
        var $helper = $('.ui-sortable-helper'), hTop = $helper.offset().top, hStyle = $helper.attr('style'), hId = $helper.attr('id');
        if (first_rows.length > 1) {
            $.each(first_rows, function(i, item) {
                if (hId != item.id) {
                    var _top = hTop + (26 * i);
                    $('#' + item.id).addClass('ui-sortable-helper').attr('style', hStyle).css('top', _top);
                }
            });
        }
    },
    start : function(event, ui) {
        if (ui.item.hasClass('ui-selected') && $('.ui-selected').length > 1) {
            first_rows = $('.ui-selected').map(function(i, e) {
                var $tr = $(e);
                return {
                    tr : $tr.clone(true),
                    id : $tr.attr('id')
                };
            }).get();
            $('.ui-selected').addClass('cloned');
        }
        ui.placeholder.html('<td colspan="99">&nbsp;</td>');
    },
    stop : function(event, ui) {
        if (first_rows.length > 1) {
            $.each(first_rows, function(i, item) {
                $(item.tr).removeAttr('style').insertBefore(ui.item);
            });
            $('.cloned').remove();
            first_rows = {};
        }
        $("#uber tr:even").removeClass("odd even").addClass("even");
        $("#uber tr:odd").removeClass("odd even").addClass("odd");
    }
    

    ​
    i’m not sure i understood what you want, anyway what the code actually do is:

    1. from the 1st table, select multiple items;
    2. by holding hover one of the selected items;
    3. you are able to move those selected where ever you want in the list;
    4. mantaining the sort order of all selected items;

    hope this is what you are looking for.

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

Sidebar

Related Questions

I'll let this jsfiddle describe most of the problem for me. http://jsfiddle.net/zAPVQ/4/ I've got
This is what I've got actually: http://jsfiddle.net/downloadtaky/P7jYU/ What I would like to achieve is
I got a CSS question related to this fiddle: http://jsfiddle.net/r584e/ Here the relevant screenshot
Please check out this http://jsfiddle.net/karthik64/JHVDn/1/ . Well I believe you got where I am
I've got an angled CSS gradient at http://jsfiddle.net/jeepstone/GLcRe/ In Firefox this is fine, but
Well Im stucked at this point.please take a look at this http://jsfiddle.net/karthik64/5jhgF/3/ Okay first
Example here: http://jsfiddle.net/7h2Dh/ Got this html: <span>Text<div id=wtf>Content</div>Text</span> I need to set div display
Got this: http://jsfiddle.net/NdsF8/ Want it to be dynamic so when you click a new
Chaps, I got this list that doesn't open the other list. http://jsfiddle.net/mdamC/147/ I want
I've got two problems here: http://jsfiddle.net/BtGtT/3 The first problem is that the footer should

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.