View Full Version : get new textfield value after key entry is accepted

2 Jul 2010, 9:05 PM
I can use Events.Keypress to get a new key entered into a text field. however, by the time the event is received, the text field value is not yet updated with the key. I tried Events.Change, but it does not fire.

How would I capture the text field value after the key has been processed? remember it is not always old value plus the key char, because it can be a backspace key, or the cursor can be somewhere not at the end.

any way to do this other than construct the new field value by hand?

2 Jul 2010, 11:09 PM
Use the keyup event.