title: Bootstrap modal adding text
body: <p>I'm trying to adding text <code>dynamically</code>. Please take a look at my script first.</p>
  
  <pre><code>&lt;id="myModal" class="modal fade" role="dialog"&gt;
        &lt;div class="modal-dialog"&gt;
  
          &lt;!-- Modal content--&gt;
          &lt;div class="modal-content"&gt;
            &lt;div class="modal-header"&gt;
              &lt;h4 class="modal-title"&gt;Progress&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div class="modal-body"&gt;
              &lt;div class="progress"&gt;
        &lt;div class="progress-bar progress-bar-striped active" role="progressbar"
        aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%"&gt;Please Wait&lt;/div&gt;
      &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="modal-footer"&gt;
              &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>and i have this </p>
  
  <pre><code>$(".progress").html("&lt;p class='pesanberhasil'&gt;Upload File Berhasil&lt;/p&gt;");
  </code></pre>
  
  <p>and here is my CSS</p>
  
  <pre><code>p.pesanberhasil
  {
      color: red;
      text-align: center;
      font-size: 20px;
  }
  </code></pre>
  
  <p>This part <code>&lt;p class='pesanberhasil'&gt;Upload File Berhasil&lt;/p&gt;</code> showing up. But the text isn't <code>fit</code> Here is the screenshot</p>
  
  <p>[<img src="https://i.stack.imgur.com/MFTBe.png" alt="enter image description here]"></p>
  
  <p>Sorry for my bad english.</p>
  
  <p>Here is my fiddle</p>
  
  <p><a href="https://jsfiddle.net/c0b2kbmr/" rel="nofollow noreferrer">https://jsfiddle.net/c0b2kbmr/</a></p>
  
  <p>Well. I've fix this . </p>
  
  <pre><code>$(".progress").remove();
  $(".modal-body").html("&lt;p class='pesanberhasil'&gt;Upload File Berhasil&lt;/p&gt;");
  </code></pre>
  
  <p>but i thing there is other solution without <code>$(".progress").remove();</code></p>