datatable dropdown toggle not working

JavaScript
$('#payment-notcompleted-table').DataTable().ajax.reload( function() {
  // initialize dropdown
  $('.dropdown-toggle').dropdown();
});
Source

Also in JavaScript: