title: ReferenceError: load is not defined
body: <p>I want to refresh the container on click event. For this task i create a function and call it in button attribute. But when i click on it then it giving me this error <code>ReferenceError: load is not defined</code></p>
  
  <h2>Button</h2>
  
  <pre><code>&lt;input type="button" value="Choose Container" data-toggle="modal" data-target="#myModal" class="sidebar-button" onclick="loadDiv();"/&gt;
  </code></pre>
  
  <h2>Targeted Container</h2>
  
  <pre><code>        &lt;div class="modal-content custom-popup-personalize"&gt;
          &lt;div class="modal-header"&gt;
              &lt;h4 class="modal-title"&gt;Container Slides&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body custom-personalize"&gt;
          &lt;div id="slider" class="flexslider "&gt;
          &lt;ul class="slides loadOne"&gt;
          &lt;?php      if(is_array($cookiProductsArray)){
          if($cookiProductsArray){
          foreach($cookiProductsArray as $cProduct){
  
          ?&gt;
          &lt;li&gt;
          &lt;img src="&lt;?php echo $cProduct['popImage']; ?&gt;"  /&gt;
          &lt;div class="pop-prodcut-details"&gt;
          &lt;h3&gt;&lt;?php echo ucwords($cProduct['name']); ?&gt;&lt;/h3&gt;
          &lt;p&gt;&lt;?php echo $cProduct['description']; ?&gt;&lt;/p&gt;
  
  
          &lt;/div&gt;
          &lt;/li&gt;
  
          &lt;?php }
          }else{?&gt;
          &lt;span class="empty-container"&gt;Container is Empty!&lt;/span&gt;
          &lt;?php }
  
          }?&gt;
  
          &lt;/ul&gt;
          &lt;/div&gt;
  
          &lt;/div&gt;
  
          &lt;/div&gt;
  </code></pre>
  
  <h2>Function</h2>
  
  <pre><code>function loadDiv(){
      load(window.location + " .custom-popup-personalize");
  }
  </code></pre>
  
  <p>Can any one please guide me where i'm wrong that i can resolve this issue.</p>