I'm trying to change a div position with jquery and it works fine in chrome but not in IE7
Jquery is loaded, but the attribute isn't changed. Help would be appreciated. Thanks in advance.
$('#tooltip1').css('left', '500px');
I'm trying to change a div position with jquery and it works fine in chrome but not in IE7
Jquery is loaded, but the attribute isn't changed. Help would be appreciated. Thanks in advance.
$('#tooltip1').css('left', '500px');
Make sure you're using jQuery 1.x and not 2.x, as 2 drops support for older versions of IE.
(I'd have posted this as a comment but I don't have enough reputation).
Edit:
While I still don't have a complete answer, the problem appears to stem from the treemap.draw function. When commenting out tree map.draw(data, options), the tracking works in IE as expected (once you put position:relative on the #tooltip1 itself, as someone mentioned in a previous comment). In addition, I created a #foo element to test the mousemove event with, and it works fine.
This leads me to believe that treemap.draw does something that gets in the way of the event handler in IE7 (and IE8), or unbinds the event entirely.