0

Can anyone help me how to remove the last entered character from textfield.

For example I have to allow only integers in the textfield.

so if we enter any hyphen(-) not as first character it should remove.

How can I achieve this using jquery?

I can do it using keypress where i can restrict keycode based on numbers available. But I want to find out the last entered character using keyup.

user1268130
  • 885
  • 3
  • 14
  • 31

0 Answers0