View Single Post
Old 10-06-2012, 10:55 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
We cannot append to innerHTML in this way:

Code:
divOutput.innerHTML += "" + name + " " + lname +  "";
// could use
divOutput.innerHTML = divOutput.innerHTML + name + " " + lname;
You will need to be careful when using both onsubmit (for the form) and onclick on the submit button, as they kinda overlap - but it's probably not a concern with your current code.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote