[jQuery] Cut string from this position an onward...

[jQuery] Cut string from this position an onward...


I need to simupate AS/400 keybord work...
I need to be able to do when a key is pressed, to delete all text from
the position of the pointer (which means that if I am in the middle of
the word then cut the right part of it) and to move to the next input
field.
How can I do that?