jQuery textbox change event doesn't fire until textbox loses focus?

后端 未结 7 1069
执念已碎
执念已碎 2020-12-04 06:06

I found that jQuery change event on a textbox doesn\'t fire until I click outside the textbox.

HTML:


         


        
7条回答
  •  感情败类
    2020-12-04 07:06

    Try the below Code:

    $("#textbox").on('change keypress paste', function() {
      console.log("Handler for .keypress() called.");
    });
    

提交回复
热议问题