I am able to copy from textbox but i have a html form which contains field names and values. Below image has the sample form.
When i click on copy to clipboard and paste, it should print the following : -
***** Customer Details *****
Name : JOHN
City : DELHI
As screenshot shows, i want to copy form data to clipboard
Any help much appreciated. Thanks in advance.