0

Have have made some jQuery that makes my navigation dropdown, show and hide on hover. For some weird reason it doesn't work on IE8 and IE7.

When testing with a Console.log() It executes correctly on hover on, but not the $('div', this).show(); part...

My jQuery version is: v1.9.1

My code

$("nav ul li").hover(
  function () {
    $('div', this).show();
  },
  function () {
     $('div', this).hide();
  }
);
dasmikko
  • 696
  • 2
  • 8
  • 29

2 Answers2

0

try this:

  $(".class").on('mouseenter', your_function);
HIRA THAKUR
  • 17,189
  • 14
  • 56
  • 87
-1

Use old jQuery version for proper support in ie6+

Check it here.

http://jquery.com/browser-support/

Branel Moro
  • 132
  • 2
  • 9