broblem with add, for example 1+2 is not 12

M

Moritz Behner

Hello,

maybe someone can help me? When I try to work this script,
"ges_auktion_preis" + "ges_post_preis" = they hang one behind the other.

for example:

<script language="JavaScript">
<!-- rechnet die Gesamtsumme aus
function gesamtBetrag(ges_auktions_preis, ges_post_preis)
{
var Ergebnis = (ges_auktions_preis + ges_post_preis); // The problem,
if there is 10 + 20 =1020
return Ergebnis;
}

function schreibe_gesamt(ges_auktions_preis, ges_post_preis)
{
var Wert3;
Wert3 = gesamtBetrag(ges_auktions_preis, ges_post_preis);
document.rechenform.gesamt.value = Wert3;
}
//-->
</script>

Please help

M. Behner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top