title: Why Bootstrap button is not clickable after append HTML?
body: <p>HTML;</p>
  
  <pre><code>&lt;div class="col-lg-9" style="background-color:#ffffff; z-index:-1;"&gt;
      &lt;h2 id="titleH2"&gt;&lt;/h2&gt;
      &lt;div class="table-responsive"&gt;
          &lt;table class="table table-striped" id="tableId"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;#&lt;/th&gt;
                      &lt;th&gt;Word&lt;/th&gt;
                      &lt;th&gt;Meaning&lt;/th&gt;
                      &lt;th&gt;Type&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody id="tbodyId"&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>javascript;
  (Data is displayed when the page is loaded.)</p>
  
  <pre><code>window.onload = function(){
      showAllWords();
  }
  
  function showAllWords(){
      $.ajax({
          url: "${pageContext.request.contextPath}/myWords/allWords",
          type: "GET",
          async:false,
          success: function(data) {
              $('#tbodyId').empty();
              var trHTML = '';
              var index = 1;
              $.each(data, function() {
                  trHTML += "&lt;tr&gt;";
                  $.each(this, function(k, v) {
                      if(k == "idWord"){
                          trHTML += "&lt;td&gt;" + index + "&lt;/td&gt;";
                          index++;
                      }
                      else{
                          trHTML += "&lt;td&gt;" + v + "&lt;/td&gt;";
                      }
                  });
                  trHTML += "&lt;td&gt;";
                  trHTML += "&lt;input type=\"submit\" class=\"btn btn-primary\" value=\"Delete\"&gt;";
                  trHTML += "&lt;/td&gt;";
              });
              $('#tbodyId').append(trHTML);
          }
      });
  }
  </code></pre>
  
  <p>Output:</p>
  
  <p><a href="https://i.stack.imgur.com/inYrN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/inYrN.png" alt="enter image description here"></a></p>
  
  <p>I can't click 'Delete buttons' after append HTML. So, buttons are not clickable. How can I fix this problem or what should I change?</p>