Jump to content

Dynamically changing a h2 on webpage


adam12

Recommended Posts

I have a html form that has say 3 text input fields and I want to dynamically change the text in a h2 whenever (on any key press during entry) the content of these 3 text fields changes.  I'm thinking that this could be done somehow with a java script but have no idea how.  Perhaps the following might help clarify:

<h2>This topic describes [field value 1] at [field value 2] in [field value 3]</h2>

So the h2 would dynamically change as input fields 1, 2 or 3 are being entered.

Hoping someone can help.

Edited by adam12
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...