How to allow numeric values only on keypress when user enters a search value in the search filter?
How to allow numeric values only on keypress when user enters a search value in the search filter?
krutovdl
Posts: 51Questions: 9Answers: 1
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
This discussion has been closed.
Answers
Looking for a way to not allow letters typed in the search filter. Is there a way of doing this?
Not internally, but you can create your own input element, and do something like this, calling
search()
with the number. This example here shows how you can re-use the standard input element,Colin