How can I get jquery .val() AFTER keypress event?

后端 未结 6 1722
北荒
北荒 2020-11-28 06:32

I got:

$(someTextInputField).keypress(function() {
  alert($(this).val());
});

Now the alert always returns the value BEFORE the keypress (

6条回答
提交回复
热议问题