jQuery & IE crashing on $('#someDiv').hide();

后端 未结 5 1992
孤独总比滥情好
孤独总比滥情好 2021-02-15 02:03

Well after a while of scratching my head and going \"huh?\" trying to figure out why IE would straight up crash when loading one of my pages loaded with jQuery goodness, I narro

5条回答
  •  轮回少年
    2021-02-15 02:23

    .hide() is just a wrapper for setting the elements style to display:none. Have you tried document.getElementById("#questions").style.display = "none" just to see if that makes any difference? It might help you pinpoint whether jQuery itself is causing a conflict.

提交回复
热议问题