Solution to grab text from page and display it elsewhere?
Posted
by GaryW
on Stack Overflow
See other posts from Stack Overflow
or by GaryW
Published on 2010-06-17T16:29:58Z
Indexed on
2010/06/17
16:33 UTC
Read the original article
Hit count: 107
JavaScript
I am trying to find a solution how to grab a text from one part of the page to be displayed on a different part of the same page (not stored).
To explain this easier. I have this:
<div id="test"> hello world </div>
I want to grab the text "hello world" and display it somewhere else on the website as well.
Im thinking that there might be a javascript code that could grab that specific div text?
Any help would be very appreciated.
© Stack Overflow or respective owner