Hook paste event to hidden textarea
I want to hook paste event for <input type="text"> and force this text to be pasted into hidden textarea (then I want to parse textarea's text and perform 'paste data from excel to gridview' action). Something like: $('#input1').bind('paste', function(e) { // code do paste text to textarea instead of originally targeted input }); What cross-browser code should I write instead of comments? Thanks. There is this hacky solution that fires a focus event on a textarea when Ctrl and V keys or Shift and Insert keys are down. [Yes, it doesn't work for contextmenu -> past] $(document).ready(function(){