internet explorer 8 - IE7-8 issue with jQuery click -


I'm really lost why IE throws a fit. It works in Chrome and IE9 Here's my script: / P>

  var utility = function ($ {'(# # head-nav a'). Click (function (e) {e.preventDefault (); $ ('# head (' 'one ('Head-link-active') Next ('div'). RemoveClass ('shadow') Slide ('sharp'). CSS ('z-index', '7999'); ($ (This) .next ('div'). (': Hidden')) {var linkPos = $ (this). Position (). Left + $ (this). Width () / 2 + 4; $ (This) .addClass ('head-link-active'); $ (this) .next ('div'). AddClass ('shadow'). SlideDown (.css ('left', linkPos + 'px') .css ('z-index', '8000');}}); $ ('utility-three.') Children ('utility-three blocks.') Eq (1) .addClass ('boundaries') ..};   

I do not think anything is syntactically false, but I Thank you very much for some help. Thanks.

There is a lot of probability with the line of the problem, / P>

e.preventDefault ()

for IE, you must also add,

event.returnValue = false;

Comments