File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Copy text from DIV

 
kwon yuu
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My interface is written using div.
I would like to copy some text from the interface when the application is run.
But I could not able to do this because of div.
Is there a way to copy certain text from div?
Hope someone can give me a guideline.
Thanks.
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure what you are trying to say here. You can easily get the contents of a div (or any other HTML element) by assigning an id to the HTML element and then using getElementById('myId').innerHTML
 
kwon yuu
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
What I meant is I can't select or copy/paste the text that I wrote within div.
I don't want to get all div elements. I don't understand why I can select or do copy/paste after I do my layout with div.
Any idea?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The use of <div> elements does not prevent copying to the clipboard.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic