title: jQuery Datatable button in row with variable from ajax source
body: <p>I'm trying to add a button in a datatable row with the following code:</p>
  
  <pre><code>$("#tbllandinfo").DataTable({
              searching: false,
              ordering: false,
              paging: false,
              bInfo: false,   
              ajax: {
                  url: '/land_and_crops/id/' + $("#eid").val(),
                  dataSrc: '', 
              },
              columns: [
                  { data: 'ldacres' },            
                  { data: 'ldyields' },           
                  { data: 'cname' },
              { 
                  sortable:false,
                  defaultContent:  "&lt;button class='btn btn-danger btn-delete form-control pull-right' dbcolid='ldid' dbcolidval= dbtable='land_det'&gt;X&lt;/button&gt;",
              }
          ]
      });
  </code></pre>
  
  <p>The button displays but the problem I'm facing is that I need to put the value of <code>ldid</code>, that comes from ajax JSON into the dbcolidval attribute in the button.</p>
  
  <p>Every row button will have its own value.</p>
  
  <p>Sample data:</p>
  
  <pre><code> {"ldid":4,"ldentity":7,"ldacres":"5.00","ldyields":2,"ldcrop":5,"cname":"RICE"},
  
   {"ldid":7,"ldentity":7,"ldacres":"10.00","ldyields":1,"ldcrop":6,"cname":"MAIZE",
  
   {"ldid":6,"ldentity":7,"ldacres":"4.00","ldyields":1,"ldcrop":3,"cname":"CORN"}
  </code></pre>