storing variable of div and cloning in new
i am new to JQuery and the question I am going to ask is very simple for
most of you.
I need to create a paragraph tag with id "original", and with the content
"This is the original text." I want to create an empty paragraph tag with
id "clone".
I want to Write a script that stores the value of the '#original' text in
a variable, replaces the word 'original' with the word 'cloned' in another
variable, and places that value in '#clone'.
Result: There will be two paragraphs, one saying "This is the original
text." and another saying "This is the cloned text."
Please explain how can i do this as simple as you can :) Thank you in
advance.
No comments:
Post a Comment