Answers for "datatable bootstrap cllick on specific button"

0

datatable bootstrap cllick on specific button

// https://stackoverflow.com/a/32475592/3673842

// html
'<button class="my-custom-button btn btn-outline-danger">My custom button</button>'

$('#table-id tbody').on( 'click', 'button.my-custom-button', function () {
  alert(alert($(this).text())) // will display "My custom button"
})
Posted by: Guest on October-05-2020

Code answers related to "datatable bootstrap cllick on specific button"

Code answers related to "Javascript"

Browse Popular Code Answers by Language