title: how to reload specific div
body: <p>I have <code>countdown</code> in my <code>container</code> div but when I tried to reload that specific <code>container</code> its reload perfectly but my <code>countdown</code> didn't showed up and also button got disabled..</p>
  <pre class="lang-js prettyprint-override"><code>function refreshDiv() {
    $('.container').load(window.location.href + &quot; .container &gt;*&quot;);
  }
  </code></pre>
  <p>javascript</p>
  <pre><code>var spn = document.getElementById(&quot;count&quot;);
  var btn = document.getElementById(&quot;btnCounter&quot;);
  
  var count = 2; // Set count
  var timer = null; // For referencing the timer
  
  (function countDown() {
    // Display counter and start counting down
    spn.textContent = count;
  
    // Run the function again every second if the count is not zero
    if (count !== 0) {
      timer = setTimeout(countDown, 1000);
      count--; // decrease the timer
    } else {
      // Enable the button
      btn.removeAttribute(&quot;disabled&quot;);
    }
  }());
  </code></pre>
  <p>this is html</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;container&quot;&gt;
  
      &lt;h2&gt;choose product &lt;/h2&gt;
      &lt;input type=&quot;file&quot; name=&quot;inpFile&quot; id=&quot;inpFile&quot;&gt;
  
      &lt;div class=&quot;image-preview&quot; id=&quot;imagePreview&quot;&gt;
        &lt;img src=&quot;&quot; alt=&quot;Image Preview&quot; id=&quot;zoom&quot; class=&quot;image- 
             preview__image&quot;&gt;
        &lt;span class=&quot;image-preview__default-text&quot;&gt;choose image&lt;/span&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class=&quot;container2&quot;&gt;
      &lt;h4 id=&quot;title&quot;&gt;here&lt;/h4&gt;
      &lt;div class=&quot;controls&quot;&gt;
        &lt;div class=&quot;main-controls&quot;&gt;
          &lt;div class=&quot;dropdown&quot;&gt;
            &lt;button class=&quot;btn btn-primary dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; id=&quot;btnCounter&quot; disabled&gt;File &lt;span id=&quot;count&quot;&gt;&lt;/span&gt;&lt;/button&gt;
            &lt;div class=&quot;dropdown-menu&quot;&gt;
              &lt;button id=&quot;txt-btn&quot; class=&quot;dropdown-item&quot; onclick=&quot;refreshDiv();&quot;&gt;Save&lt;/button&gt;
  </code></pre>