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

后端 未结 7 1057
执念已碎
执念已碎 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.");
    });
    
    0 讨论(0)
提交回复
热议问题