开发者

.load internet explorer error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜