Apparently there are some situations where jQuery doesn't work for pasting. You might need to bind to several events as shown in following reference to catch users pasting contents accurately.

From Soliciting Fame - jQuery keyup vs bind - (from way-back machine)

// detect the change
$('input#myId').bind("change keyup input",function() { 
    // handle events here
});

UPDATE: bind was deprecated on Jquery 3.0 and was replaced with on

// detect the change
$('input#myId').on("change keyup input",function() { 
    // handle events here
});
Answer from jwwishart on Stack Overflow
๐ŸŒ
SitePoint
sitepoint.com โ€บ javascript
Bind "Change Paste Keyup" to input element with no jQuery
October 9, 2014 - I have the following code in jQuery that updates a div in real time as the user changes the value of #myinput text field: $('#myinput').bind('change paste keyup', function() { // Do something...
๐ŸŒ
Infoheap
infoheap.com โ€บ home โ€บ tutorials โ€บ javascript โ€บ jquery
jQuery - text input field - change keyup and paste events - InfoHeap
<script src="//ajax.googleapis... id=msg></div> <script type="text/javascript"> $('input#field1').on("change keyup paste", function(evt) { $("#msg").append("eventtype => " + evt.type + " / newval => " + this.value + "<br>"); }); </script>...
Discussions

on("keyup paste", function) not updating in Microsoft Edge
๐ŸŒ forum.jquery.com
Trigger the keyup function when someone copy and paste
Don't use paste event. MDN states it is not fit for production in 2017. ... The December 2024 Community Asks Sprint has been moved to March 2025 (and... Stack Overflow Jobs is expanding to more countries ยท 91 jQuery bind to Paste Event, how to get the content of the paste More on stackoverflow.com
๐ŸŒ stackoverflow.com
May 19, 2015
Can .change handle immediate text changes?
๐ŸŒ forum.jquery.com
August 13, 2010
Simulate keyup event when data pasted into input box
Find answers to Simulate keyup event when data pasted into input box from the expert community at Experts Exchange More on experts-exchange.com
๐ŸŒ experts-exchange.com
November 15, 2012
๐ŸŒ
CodePen
codepen.io โ€บ cvilla2111 โ€บ pen โ€บ Kbpzva
Jquery search using keyup and copy+paste using keyboard and mouse.
$(".my-textbox").keyup(function(e) { var val = $(this).val(); filter(val.toLowerCase()); }); $(".my-textbox").on("paste", function() { var element = this; setTimeout(function() { var text = $(element).val().toLowerCase(); filter(text); }, 100); }); function filter(x) { var isMatch = false; $(".personsMenu li").each(function(i) { var content = $(this).html(); if (content.toLowerCase().indexOf(x) == -1) { $(this).hide(); } else { isMatch = true; $(this).show(); } }); var ccs = $('.personsMenu li').filter(function() { return $(this).css('display') !== 'none'; }).length; $(".no-results").toggle(!isMatch); $(".cc").toggle(isMatch); } var ccs = $('.personsMenu li').filter(function() { return $(this).css('display') !== 'none'; }).length;
๐ŸŒ
HowToDoInJava
howtodoinjava.com โ€บ jquery โ€บ jquery-detect-cut-copy-or-paste-events
jQuery - Detect Cut, Copy or Paste Events - HowToDoInJava
December 26, 2020 - Thanks for the replyโ€ฆโ€ฆ My Problem was that i do want want user to put char value in a numeric field.copy paste effecting the functionality. I will try this solution. ... I confirm. I works. ... JavaScript โ€“ DOM vs. jQuery Objects
Find elsewhere
๐ŸŒ
W3Schools
w3schools.com โ€บ jquery โ€บ event_keyup.asp
jQuery keyup() Method
jQuery Overview jQuery Selectors jQuery Events jQuery Effects jQuery HTML/CSS jQuery Traversing jQuery AJAX jQuery Misc jQuery Properties ... The keyup event occurs when a keyboard key is released.
๐ŸŒ
Experts Exchange
experts-exchange.com โ€บ questions โ€บ 27937283 โ€บ Simulate-keyup-event-when-data-pasted-into-input-box.html
Solved: Simulate keyup event when data pasted into input box | Experts Exchange
November 15, 2012 - Here is the code that currently runs on the paste event and it works to alert back the value of the whatever was pasted: onPaste="e = this; setTimeout(function(){alert(e.value);}, 4);" Select allOpen in new window What I need to have happen is that instead of this alert, I need to trigger this code that normally runs on keyup:
๐ŸŒ
W3Schools
w3schools.com โ€บ Jsref โ€บ event_onpaste.asp
onpaste Event
It is only possible to paste something into an input field.
๐ŸŒ
CodePen
codepen.io โ€บ vezi โ€บ pen โ€บ xwMJaE
jQuery keyup change event
var keyup_count = 0; var change_count = 0; $('#input1').keyup(function(){ keyup_count++; $('#log_keyup').html('keyup:'+keyup_count) }) $('#input1').change(function(){ $('#log_change').html('change:'+change_count) })
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ API โ€บ Element โ€บ paste_event
Element: paste event - Web APIs | MDN
const target = document.querySelector("div.target"); target.addEventListener("paste", (event) => { event.preventDefault(); let paste = (event.clipboardData || window.clipboardData).getData("text"); paste = paste.toUpperCase(); const selection = window.getSelection(); if (!selection.rangeCount) return; selection.deleteFromDocument(); selection.getRangeAt(0).insertNode(document.createTextNode(paste)); selection.collapseToEnd(); });