Saturday, August 31, 2013

Onclick div content should change another div with the same content

Onclick div content should change another div with the same content

Lets say I have two divs:
<div id="text1">Text</div>
<div id="text2">Same text from the 1st div</div>
How can I change "text2" to the same text on "text1" by clicking on "text1"

No comments:

Post a Comment