Click to See Complete Forum and Search --> : what did the user do to my textbox?


ChuckGoose
08-15-2003, 01:50 PM
I need to perform a function every time a key is pressed in a text input. Problem is, onkeypress happens before the value of the textbox is modified. So I need to figure out what they did. Pulling the key code and adding it to the current value works fine and dandy until you think, what if they selected some characters and pressed another? Long story short, I need to know what the value is going to be. There's got to be a way, or am I just stuck with timeout and hope browser updates before it runs out?

Thanks,
Chuck

Khalid Ali
08-15-2003, 01:54 PM
use the onkyup event
Thas what you need in this situation.

ChuckGoose
08-15-2003, 01:57 PM
Don't I just feel like the biggest dough head.

Thanks,
Chuck

Khalid Ali
08-15-2003, 02:18 PM
you are free to feel whatever you like..:D