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?

krutovdlkrutovdl Posts: 26Questions: 6Answers: 1

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • krutovdlkrutovdl Posts: 26Questions: 6Answers: 1

    Looking for a way to not allow letters typed in the search filter. Is there a way of doing this?

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    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

This discussion has been closed.