I want to paste a content in an input field (I have to use input field) and get the pasted content to other input. my content is like the following (copy all lines and paste):
1234
4567
4321
on all browser the following link works fine but IE
$editor.on('paste', function() {
var $self = $(this);
setTimeout(function(){
var $content = $self.val();
$clipboard.val($content);
},100);
});
when using IE and when paste the content, only the first line (1234) will be appear into the second input. but other browsers you get all the content.
Can anyone help me out here Thanks,
See Question&Answers more detail:os