I wrote a script that works perfectly in Chrome, but I'm running into issues with IE8:
Here is my jQuery code:
$("<div class='divButtons'></div>").appendTo( $(".widget_header") );
$(".divButtons").text("321");
This is the CSS I'm using:
.divButtons { background:orange; display:none; }
.widget:hover .divButtons { display:block; }
Check out my jsFiddle for the full demonstration:
Click here to view the jsFiddle.
What's working:
Currently, when I hover over a .widget
, the .divButtons
appears due to the CSS styling. Moving one widget to another keeps everything functioning smoothly as intended. However, in IE8, there's a problem not present in Chrome.
The issue:
In IE8, when I hover over a .widget
and then move it to a different part of the screen before releasing it, the .divButtons
continues to display on the initial .widget
even though I'm no longer hovering over it. This discrepancy doesn't occur in Chrome.
Seeking solution:
Is there a way to ensure this functionality behaves correctly in IE8, similar to how it does in Chrome?