Skip to content

Instantly share code, notes, and snippets.

@OzanKurt
Created December 15, 2016 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OzanKurt/807d4fc50a720734b3d9f7f7a0e5671a to your computer and use it in GitHub Desktop.
Save OzanKurt/807d4fc50a720734b3d9f7f7a0e5671a to your computer and use it in GitHub Desktop.
"initComplete": function () {
var api = this.api();
$('.dataTables_filter:first input').off('.DT').on('keyup.DT', function (e) {
if (e.keyCode == 13) {
api.search(this.value).draw();
}
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment