Javascript 从外部php加载的内容不使用snap.js

Javascript 从外部php加载的内容不使用snap.js,javascript,jquery,load,Javascript,Jquery,Load,我正在使用Snap.js库()创建动态侧面板。这是我的主要内容: <!-- Central content --> <div id="content" class="snap-content"> <div id="toolbar"> <a href="#" id="open-left">Open panel</a> </div> &l

我正在使用Snap.js库()创建动态侧面板。这是我的主要内容:

<!-- Central content -->


    <div id="content" class="snap-content">
        <div id="toolbar">
            <a href="#" id="open-left">Open panel</a>
        </div>    
        <div id="dynamic-content"></div>

    </div>

正如您所看到的,有一个动态内容。它加载了以下功能:

 <script>

  $(document).ready(function() {
  $('#dynamic-content').load('content/index.php')}); 

  </script>

$(文档).ready(函数(){
$('#dynamic content').load('content/index.php')});
面板正在工作,内容已加载。唯一的问题是,当我单击这个“动态内容”div时,snap.js面板没有响应

这是加载的index.php的内容:

<link rel="stylesheet" href="style.css">
<object  type="image/svg+xml" class="img" data="svg/map.svg">Your browser does not support SVG</object>

您的浏览器不支持SVG
我想要这个

 <div id="dynamic-content"></div>

像这样工作

<div id="content" class="snap-content">

是的

有人能帮我吗?先谢谢