jquery keyup detect paste text from input

后端 未结 2 599
遇见更好的自我
遇见更好的自我 2021-01-01 17:12

I have to use here jquery keyup to detect if user enter any text or not, but my problem is if user use paste the text using mouse, it won\'t be able to dete

2条回答
  •  星月不相逢
    2021-01-01 17:20

    In this particular situation enough will be just bind to the input event:

    $('textarea').bind("input", function() {});
    

提交回复
热议问题