Is it possible to know if text to an input field was added by typing or by using paste?
$('document').on("keyup", ".tfs", function(e) {
   alert("typed text");
})
$('.tfs').on('paste', function(e) {
   alert("paste text!");
});
EDIT:
I'm looking for an solution which is not an inline code solution such as onpaste(). I'm need to do this using bind ( .on now ) as per my code above.
 
     
     
    