html <input type=“text” /> onchange event not working

后端 未结 12 2537
-上瘾入骨i
-上瘾入骨i 2020-11-30 01:13

I am trying to do some experiment. What I want to happen is that everytime the user types in something in the textbox, it will be displayed in a dialog box. I used the

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 01:44

    HTML5 defines an oninput event to catch all direct changes. it works for me.

提交回复
热议问题