Change an image when input is given

前端 未结 5 1965
执念已碎
执念已碎 2021-01-28 17:10

I have a small basic html code with JavaScript . All I want is when I type 3,it should show me an image as specified and for 9 accordingly. This is the demo. Visit http://jsbin.

5条回答
  •  隐瞒了意图╮
    2021-01-28 17:45

    try capturing "keypress" event on input box, http://api.jquery.com/keypress/ OR try capturing "change" event on input box, http://api.jquery.com/change/

提交回复
热议问题