How to make thatonly integer value that can be inputed in text field

Good day!

can any one help me how to test that the text field should inputed only a integer or numbers?

You help is greatly appreciated.

thanks