monosyth
asked on
How to add multiple Javascript Variables together
This is only updating my form actions for the first variable, not the second, does this need to be written differently?
<script type="text/javascript">
function update10()
{
document.getElementById("1 0Preview") .action = 'PropertyApp/viewtemplate. cfm?code=c ode10&Floo rplanID=' + document.form10.FloorplanI D.value; + '&theme=' + document.form10.theme.valu e;
document.getElementById("1 0PDF").act ion = 'PropertyApp/pdftemplate.c fm?code=co de10&Floor planID=' + document.form10.FloorplanI D.value; + '&theme=' + document.form10.theme.valu e;
document.getElementById("1 0Email").a ction = 'PropertyApp/email_form_te mplate.cfm ?code=code 10&Floorpl anID=' + document.form10.FloorplanI D.value; + '&theme=' + document.form10.theme.valu e;
document.getElementById("1 0WebFlyer" ).action = '/flyers/WebFlyer_Apt.cfm? ID=#Userin fo.id#&cod e=code10&F loorplanID =' + document.form10.FloorplanI D.value; + '&theme=' + document.form10.theme.valu e;
return;
}
</script>
<script type="text/javascript">
function update10()
{
document.getElementById("1
document.getElementById("1
document.getElementById("1
document.getElementById("1
return;
}
</script>
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.