add button to datatable row dynamically
Call the fnCreatedRow
function, which fires after every row is created (callback).
Call your method from there to do what is needed. In this case:
$('#users_table').dataTable( { "fnCreatedRow": function( nRow, aData, iDataIndex ) { $('td:eq(0)', nRow).append("<div class='col1d'><button class='editBut'><img >src='img/property32.png'></button></div>"); }, });