开发者

.load internet explorer error

开发者 https://www.devze.com 2023-02-25 03:12 出处:网络
I am using .load to load some data into a div. It works just fine but if I try to be specific and load a specific ID from the html IE won\'t load anything.

I am using .load to load some data into a div. It works just fine but if I try to be specific and load a specific ID from the html IE won't load anything.

Ex.

$('div.myDiv').load('/example/example.htm');

works just fine but if I get specific on what to load like

$('div.myDiv').load('/example/example.htm #dogs');

IE loads nothing. is this not something that works in IE? The Jquery site doesn't say it doesn'开发者_Go百科t. If it helps I'm using version jquery-1.5.min.js.


Does the html from /example/example.htm validate?

.load() will fail in ie if there are errors in the html.

0

精彩评论

暂无评论...
验证码 换一张
取 消