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
http://jsfiddle.net/5bNx4/42/
$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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…