Problem with HTML Parser in IE

后端 未结 9 879
醉梦人生
醉梦人生 2020-12-24 05:56

I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:

Message: HTML Parsing E

9条回答
  •  情话喂你
    2020-12-24 06:23

    I had this same problem. My issue was that I was calling a Javascript function before the containing div was closed.

    To fix the problem, I call the Javascript function within the jQuery ready event handler:

    $(document).ready(function(){
        some_random_javascript_function();
    });
    

提交回复
热议问题