
Replace text on CURRENT page with text entered in form ONCLICK
Basically, I have a page that I'd like to add a little feature too.
At the top of the page, would be a form, with a single text field and a submit button.
When the submit button is clicked, all instances of XXXX on the current page would be automatically replaced with whatever was entered in the text field.
Let's say on a page, the form would say "enter name here" and a 'submit' button...
Now just for the sake of simple example, I have several sentences on this current page.
Hi my name is XXXX
His name is XXXX
Would you like to meet XXXX
etc.
I need XXXX replaced on the current page with the text entered in the form when the submit button is clicked.
So if I had entered Adam in the form, the resulting sentences would dynamically change to,
Hi my name is Adam
His name is Adam
Would you like to meet Adam
To be more specific, I don't want to send people to a NEW page when the submit button is clicked, I want the existing XXXX on the current page to be replaced with the new text when the submit button is clicked.
Notice there will be MULTIPLE instances of XXXX on the current page.
-
dwoods -
[ 1 ] Thanks
{{ DiscussionBoard.errors[7035291].message }} -
-
Adam Roy -
Thanks
SignatureFinding high value, low competition SEO keywords too difficult? NOT ANYMORE!...{{ DiscussionBoard.errors[7036305].message }} -
-
dwoods -
Thanks
{{ DiscussionBoard.errors[7036486].message }} -
-
Adam Roy -
Thanks
SignatureFinding high value, low competition SEO keywords too difficult? NOT ANYMORE!...{{ DiscussionBoard.errors[7036634].message }} -
-
mesmsgs -
Thanks
{{ DiscussionBoard.errors[7075760].message }} -