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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:05:51+00:00 2026-06-17T10:05:51+00:00

I have a draggable div with a simple hover effect. When I drag this

  • 0

I have a draggable div with a simple hover effect. When I drag this div using the “helper:clone” option, the hover effect is not removed while dragging the element (Internet Explorer). However, If I use Chrome, the effect is removed.

My CSS:

.div-draggable
{
  width: 100px;
  height: 25px;
  border: 1px solid #000;
  cursor: pointer;
}

.div-draggable:hover
{
  background: blue;
  border-color: red;
}

My JS:

$(document).ready(function() {
  $('.div-draggable').draggable({
  helper: "clone"
  })
});

Here is a JsFiddle containing my problem (open with Chrome and IE please)

http://jsfiddle.net/m3GyL/

I need to remove the hover effect because I want to customize my helper element, but I cant do it properly because of the background + border from hover.

Can anybody help me? I need to make it work in IE, like it works in Chrome.

Thanks!

  • 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-17T10:05:52+00:00Added an answer on June 17, 2026 at 10:05 am

    We can use the drag start event handler and change the css for helper ui element while it’s being dragged which ensures it’s working across browsers as well:

        $(document).ready(function() {
          $('.div-draggable').draggable({
            helper: "clone",
            start: function(e, ui) {
              $(ui.helper).css("background", "white").css("border-color","black");
            }
          });
        });
    

    Hope this helps and please find the solved fiddle here.

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

Sidebar

Related Questions

I have a draggable div element with a hover style. This works fine, but
I have a form within a draggable() div. The form simply looks like this:
I have a very big draggable div in my window. This div has a
In my case, i have some div and img tags. I am applying draggable
I have a number of draggable images that I want to clone and then
I have some particular need to clone an element (image) and be draggable inside
suppose I have a panel with draggable element, and a droppable container,when I drag
I am using JavaScript and trying to make a skew effect on a div.
I'm creating a simple drag and drop game with jquery's draggable plugin. There are
I have Drag/Drop functionality in my page embedded using YAHOO.js which is initalized at

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.