Hook into keyup events for native search filter for DataTables

Hook into keyup events for native search filter for DataTables

rldean1rldean1 Posts: 141Questions: 66Answers: 1

Is there a way to hook into the search filter for DataTables? Specifically, I want to change how many letters must be typed before the search request is sent to the server... Also, I want to control what people type in that search input box. (Require 3 or more letters, and restrict crazy characters, possibly show an error).

I'm using AJAX server-side processing.

Should this be controlled from the ajax: function (data, dt_callback, settings) {} function, or the .on('search.dt', function (e, settings) search event.

I think I need to do this in the AJAX function.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.