By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,364 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,364 IT Pros & Developers. It's quick & easy.

How do I display text given (by the person writing in an input box in my page) somewh

P: 5

I know I can reproduce what is written in input boxes in other input boxes --- like with "shipping" and "billing" addresses.

However, I haven't been able to make it so I can present that entered data somewhere else - like when people enter data on a website and then there answers show up in "Settings."

I tried adding: "document.getElementById("text").value=(shippingZi p.value);"

to a function --- with "<p id="text"></p>" in the HTML

But that didn't work.

Any help would be appreciated.

Oct 28 '19 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,389
the p-tag has no value property. use innerText or innerHTML for it. You could even use createTextNode and append the node to the position you want it to have.
Oct 29 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.