使用jquery将外部html文件加载到div

我正在使用一个有很多工具提示的html页面.每个工具提示都有一个图库,因为不可能使用具有相同ID的多个图库,我打算为图库创建6个不同的html文件,然后将图库加载到我的页面.

我需要为每个div调整html页面.
我试过.load但它没有用.

<div id="flrmain">need to call the html file inside this div.<div>

请帮忙.

解决方法

$.get('test.html')
 .success(function(data) {
     $('div.content').html(data);
 });

编辑

如果您需要该特定div,请将’div.content’替换为’#flrmain’.

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...