How to set maxlength for the filter criteria?
How to set maxlength for the filter criteria?
I just found out that in current version of Datatable, the filter can take as many characters as you want. I am wondering how to set a upper limit for the input? For example, I just want a user be able to enter 50 characters(including space) at most into the filter textbox, how can I make that happen? Thank you!
This discussion has been closed.
Replies
* Open file media/js/ jquery.dataTables.js
* replace all cases of
with
Save and close file.
That is it.
- Hydradicty
[code]
$('.dataTables_filter input').attr( 'maxlength', 50 );
[/code]
Allan