TextBox event for only user input

前端 未结 5 924
南旧
南旧 2021-01-12 06:46

I have a Textbox control which sometimes updated programmatically and also can be update by the user. How can I distinct between those two event? I\'d like to have a "D

5条回答
  •  一整个雨季
    2021-01-12 07:12

    try onBlur

    this will catch the moment the user leaves the field.

    You can work it up in conjunction with onFocus to save the value before editing

提交回复
热议问题