Hi,
I want to simulate a ctrl+c to copy the text into it. I first tried this:
$('#codetext').click( function() {
$("#codetext").trigger({
type: 'keydown',
which: 99
});
}
HTML:
<input type='text' id='codetext'>
I have also tried using $(this)
instead of the selector, but the input element also has focus on it, doesn't run.
Anyone can help me with this? Thanks for read this.