I’m looking to copy content from multiple textboxes to one textarea or straight to the clipboard using HTML/JS.
E.g Text1 = 123 Text2 = 456 Text3 = 789
I need to output it as
123
456
789
Without the spaces – So Far I have
function Copy1() {
if(window.clipboardData) {
window.clipboardData.clearData();
window.clipboardData.setData("Text", document.getElementById('Text3').value);
This is okay for copying 1 textbox but I need to copy multiple textboxes and line break the content is this possible?
Thanks
How about trying