Avatar

Level 8

I don't understand fully why you need to check if the backspace key is pressed since it sounds like you want them to be able to use it.

If you want to prevent them from entering numbers then put the following in the change event of the field:

if (!/\d/.test(xfa.event.change))

xfa.event.change="";

Kyle