Capture text pasted into a textarea with JQuery

后端 未结 4 563
甜味超标
甜味超标 2020-12-31 08:55

I have to take the paste event of a text area using JQuery. I have tried the following code but it is not working...

$(document).ready(function()
{ 
  $(\'#t         


        
4条回答
  •  独厮守ぢ
    2020-12-31 09:18

    $('#txtcomplaint').bind('paste', function(e){ alert('pasting!') });
    

    For additional resource take a look here.

提交回复
热议问题