html - jQuery load() code not working in Google Chrome -
I'm stuck here with a little jQuery problem! I am using this code to load the contents of the HTML code (bio.html) into a Diva Container (Content). It works in IE8 and Firefox 6, but not in Google Chrome!
Any thoughts that I am doing wrong? Here's the code:
& lt; Head & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Script type = "text / javascript" src = "./ js / jquery.min.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt;
& lt; Div id = "content" & gt; Hello & lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# content'). Load ('./ html / bio.html');}); & Lt; / Script & gt;
It works fine for me in Chrome < / P>
If you see any unexpected errors, then try to look at the developer's inspection tool to make sure you are in http: // or https: // protocol, file: // Will not work
Comments
Post a Comment