passé 45min en essayant la figure pourquoi il renvoie NaN, s'il vous plaît pointez-moi dans la bonne direction. Mon code est:parseInt renvoie NaN
<form name="calc">
<input type="text" value="0" name="first" onchange="add()">
<input type="text" value="0" name="second" onchange="add()">
<input type="text" name="result" onchange="add()">
</form>
<script type="text/javascript">
var a = parseInt(document.calc.first.value);
var b = parseInt(document.calc.second.value);
var c = a + b;
function add(){
document.calc.result.value = parseInt(c);
}
</script>
maintenant je vois, il y a tellement plus à apprendre. Je vous remercie :) – MrPaulius