Link to home
Create AccountLog in
Avatar of monosyth
monosythFlag for United States of America

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("10Preview").action = 'PropertyApp/viewtemplate.cfm?code=code10&FloorplanID=' + document.form10.FloorplanID.value; + '&theme=' + document.form10.theme.value;

document.getElementById("10PDF").action = 'PropertyApp/pdftemplate.cfm?code=code10&FloorplanID=' + document.form10.FloorplanID.value; + '&theme=' + document.form10.theme.value;

document.getElementById("10Email").action = 'PropertyApp/email_form_template.cfm?code=code10&FloorplanID=' + document.form10.FloorplanID.value; + '&theme=' + document.form10.theme.value;

document.getElementById("10WebFlyer").action = '/flyers/WebFlyer_Apt.cfm?ID=#Userinfo.id#&code=code10&FloorplanID=' + document.form10.FloorplanID.value; + '&theme=' + document.form10.theme.value;

return;
}

</script>
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer