document.getElementByID Not Working in IE 8

前端 未结 1 836
醉酒成梦
醉酒成梦 2021-01-15 19:01

I have never done this before so I apologize if I don\'t describe my issue good enough or don\'t use all the right syntax.

What I have on my website is an email form

相关标签:
1条回答
  • 2021-01-15 19:33

    IE8 is not loading your form_validation.js file and that's why it isn't running your initialization code in that file.

    You need to change the type on your script tag to type="text/javascript" or remove the type entirely. You have type="application/javascript" which is not correct.

    After further exploration, see Why doesn't IE8 recognize type="application/javascript" in a script tag? for more discussion.

    0 讨论(0)
提交回复
热议问题