Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Copying HTML table to clipboard

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to copy my HTML table elements to the clipboard. But I have used div tag inside the td tag of the table. I think that what adding a new line after pasting the contents from the clipboard. I want that to stay in the same line. Please help how to make it possible.

Sample Output


ProfileUID : 12345  
First Name : John  
Email : John.doe@xyz.com  
Profile Status : Enabled  
Country Code : United States (+1)  
Phone No. :  
+1- 456789125  

Last Generated OTP : x5xx555  
Employee ID : 223344  
User ID : johndoe  

Required Output

ProfileUID : 12345  
First Name : John  
Email : John.doe@xyz.com  
Profile Status : Enabled  
Country Code : United States (+1)  
Phone No. : +1- 456789125  
Last Generated OTP : x5xx555  
Employee ID : 223344  
User ID : johndoe  

*Look at the Phone No. in the above outputs.*

index.html




script.js

 
please buy my thing and then I'll have more money:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic