Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

did i do this right, concactanate two values?

Status
Not open for further replies.

planeboy747

Technical User
Joined
Jan 11, 2005
Messages
41
Location
US
Take a look at the line with "confirmation11" - I don't think I concactanated lname1 and fname1 correctly?

function doConfirm() {
document.getElementById("confirmation1").innerHTML=document.getElementById("agency").value;
document.getElementById("confirmation2").innerHTML=document.getElementById("arc").value;
document.getElementById("confirmation3").innerHTML=document.getElementById("email").value;
document.getElementById("confirmation4").innerHTML=document.getElementById("datebooked").value;
document.getElementById("confirmation5").innerHTML=document.getElementById("recordlocator").value;
document.getElementById("confirmation6").innerHTML=document.getElementById("numpassengers").value;
document.getElementById("confirmation7").innerHTML=document.getElementById("flightnum").value;
document.getElementById("confirmation8").innerHTML=document.getElementById("deptdate").value;
document.getElementById("confirmation9").innerHTML=document.getElementById("deptcity").value;
document.getElementById("confirmation10").innerHTML=document.getElementById("farebasis").value;
document.getElementById("confirmation11").innerHTML=document.getElementById('lname1').value + ', ' + document.getElementID('fname1').value;
document.getElementById("confirmation12").innerHTML=document.getElementById("appCode").value;
}
 
js is case sensitive

getElementID

should be

getElementId



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
got it fixed, but still not working...
 
Should be getElement[red]By[/red]Id on that one line.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
>> "Should be getElementById"

doh, i must be blind!

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top