title: How to refresh an element using AJAX?
body: <p>I have an element for ex. <code>&lt;div&gt;</code>. and in that I have fetched dynamic contents from database, I am already performing some database operation using AJAX and I am able to load some part of my page from other php file, but on the same page I want my other div to be repopulate its data from database.</p>
  
  <p>This is my <strong>manage_your_listing.php</strong></p>
  
  <pre><code>&lt;div class="col-sm-12 pd"&gt;
    &lt;ul class="nav nav-tabs notificationtabs"&gt;
      &lt;li class="active"&gt;&lt;a href="#live_on_site" data-toggle="tab"&gt;Live On Site&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#pendding_review" data-toggle="tab"&gt;Pending Review&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#pause" data-toggle="tab"&gt;Pause&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div class="tab-content"&gt;
    &lt;div class="tab-pane fade active in" id="live_on_site" &gt;
      &lt;?php
          include'manage_order/live_on_site.php';
      ?&gt;
    &lt;/div&gt;&lt;!-- End tab1--&gt;                    
    &lt;div class="tab-pane fade" id="pause" &gt;
      &lt;?php
          include'manage_order/pause_order.php';
      ?&gt;  
    &lt;/div&gt;&lt;!-- End tab2 --&gt;
  &lt;/div&gt;&lt;!-- End tab-content --&gt;
  </code></pre>
  
  <p>this is my <strong>live_on_site.php</strong>'s AJAX function</p>
  
  <pre><code>function ConfirmPause(prod_id){
    $.ajax({
      type: "get",
      url: "seller/manage_order/live_on_site_pause.php?prod_id="+prod_id.id,
      cache: false,
      dataType: "html",
      asyc: false,
      success: function (data) {
        $("div#live_prod").html(data);
      }
    });
  }
  </code></pre>
  
  <p>so finally my live_on_site.php's live_prod div is being repopulated with the contents of live_on_site_pause.php</p>
  
  <p>but what I want is, there is div in pause_order.php which is accessible in every php file specified here, and that div is being populated with some database content by using select statement, and I want it just to refresh, Is it possible? or do I need to create a new php file and call it using ajax?</p>