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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:18:52+00:00 2026-06-15T01:18:52+00:00

I tried everything I know to solve this problem, but no success. My site

  • 0

I tried everything I know to solve this problem, but no success. My site is working completely in IE and FF. in Chrome there is a little glitch – without a reason.

I have two tables. A source table and a destination one. I am dragging table-rows (tr) from source to destination or inside the destination table.
When I start dragging the row, it is cloned by a self-made helper to drag it freely around.

helper: function(event){
/* HERE IS THE PROBLEM */
   return $('<div class="dragged-row"><table></table></div>')
          .find('table').append($(event.target).closest('tr').clone().addClass("dragged-row")).end();
},

(I got this code from the internet)

When I use the helper ‘clone’ instead, the problem is gone, but my class is not applied (the purple background-color).

I have created a minimized example on http://jsfiddle.net/jt3LX/

You can drag one row. If you start dragging, both lines will get purple (this is wanted). But in chrome the first row of the table is getting BIG (why????).

Could you help me with one (or both) of these possibilities:

  • Find another way to make the background of the source purple,
  • Find the problem of the “bigging the first row”-glitch.

Many thanks,
Michael

  • 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-15T01:18:53+00:00Added an answer on June 15, 2026 at 1:18 am

    Use this line instead : return $(this).addClass("dragged-row").clone();

    http://jsfiddle.net/jt3LX/2/

        $(".drag tr").not(".tableHead").draggable({
            helper: function(event){
                /* HERE IS THE PROBLEM */
                return $(this).addClass("dragged-row").clone();
            },
            start: function(event, ui){
                $(this).css("background-color", "#aaaaff");
    
                c.tr = this;
                c.helper = ui.helper;
            },
            stop: function(event, ui){
                $(this).css("background-color", '');
    
                c.tr = null;
                c.helper = null;
            }
        });
    

    Tested on FF, IE9 and Chrome

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

Sidebar

Related Questions

I know this question has been asked numerous times but I've tried everything. I
I know this is a known issue. But I've tried everything I found out
I tried everything to get this code working, and I hope someone will save
I tried everything to debug this one but I can't get to the bottom
My problem is fairly easy but I just don't know how to solve it.
i tried now nearly everything i could to solve he following problem. So far
I know I can solve this by pushing everything into a single entity rather
This really is a noobish question, but I honestly don't know how to solve
I don't know why , i can't override back button: I tried everything I
I've tried everything and it still fails! What's wrong with this code?!?! I wanted

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.