title: Bootstrap editable table adding dynamic rows
body: <p>I am working with bootstrap editable to create a dynamic table. 
  I need to add new row and automatically populate the values into the editable table.</p>
  
  <p>The existing rows 'Test' are editable whereas , the new rows does not have the bootstrap editable properties. 
  I am using <code>bootstrap-table-editable.js</code> for the editable table.</p>
  
  <p>Table HTML</p>
  
  <pre><code>             &lt;table id="rules_table" 
                        data-toggle="table"&gt;
                        &lt;thead&gt;
                           &lt;tr&gt;
                              &lt;th data-editable="true" data-field="name" &gt;Name&lt;/th&gt;
                              &lt;th data-editable="true" data-field="desc"&gt;Description&lt;/th&gt; 
                          &lt;/tr&gt;
                        &lt;/thead&gt;
  
                        &lt;tr&gt;
                          &lt;td&gt;Test&lt;/td&gt;
                          &lt;td&gt;Test&lt;/td&gt;                                                       
                        &lt;/tr&gt;
                &lt;/table&gt;
  </code></pre>
  
  <p>jQuery</p>
  
  <pre><code>$('#add_rule').click(function()
  
   {
      var  name = $('#name').val()
      var desc= $('input[name=desc]:checked').val(); 
  
    $("#rules_table")
      .append($('&lt;tr&gt;')
      .append($('&lt;td&gt;')
              .text(rule_name)
              .append($('&lt;/td&gt;'))
          )
          .append($('&lt;td&gt;')
              .text(rule_name)
              .append($('&lt;/td&gt;'))
          )
  
         .append($('&lt;/tr&gt;')                             
      ) )
  
   });
  </code></pre>
  
  <p>The values 'name' and 'description' are getting added to the table. But it cannot be edited.</p>
  
  <pre><code>&lt;a href="javascript:void(0)" data-name="name" data-pk="undefined" data-value="Test" class="editable editable-click"&gt;Test&lt;/a&gt;  
  </code></pre>
  
  <p>This is the html element contents from developer tools.</p>