hendl
Erfahrenes Mitglied
Das würde dann per diesem Code funktionieren
Lg hendl
HTML:
<!-- just put your html code here -->
<html><head><title>Forumalfeld Addition</title>
<script type="text/javascript"><!--
function calculate() {
input1 = parseFloat( document.formu.input1.value.replace(/,/ , ".") );
input2 = parseFloat( document.formu.input2.value.replace(/,/ , ".") );
document.getElementById("output").innerHTML= (input1 + input2).toString().replace(/\./ , ",");
}
//--></script>
</head><body>
<form name="formu" action=""><div>
<input type="text" name="input1" size="15" value="Eingabe 1" onkeyup="calculate()"/><br />
<input type="text" name="input2" size="15" value="Eingabe 2" onkeyup="calculate()"/><br />
<!--<input type="text" name="output" size="15" value="Ausgabe" /><br /> -->
</div></form>
<span id="output">Startwert</span>
</body></html>
Lg hendl