<html>
<script>
$('#pasteButton').click( function() {
// place code for this button
// ctrl + v shortcut should work for this button
// how?
}
});
</script>
<body>
<input type="button" id="pasteButton" value="Paste" />
</body>
</html>
Thanks in advance. Similarly, I also need to cut / copy selected text from a textarea using buttons.
update from comment section : I have a text area where I select some text and if I click on pasteButton that selected text need to be pasted in my text area