Validating presence of only text in a input field.

I want to validate if there is only text in an input field and if not throw an error