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
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.