title: How to dynamically change bootstrap modal body
body: <p>So I have Bootstrap modal defined as:</p>
  
  <pre><code>   &lt;div class="modal fade" id="myModal" role="dialog"&gt;
          &lt;div class="modal-dialog modal-sm"&gt;
              &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                      &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                      &lt;h4 class="modal-title"&gt;Error&lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                      &lt;p&gt; &lt;/p&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 want to edit the empty body with jscript. Im a beginner in Javascript so I'll appreciate the simplest answer.</p>