J'ai un textbox, je met un nombre (cet partie marche) et je voudrais que ca m'affiche un résultat de l'addition.

Or ca ne marche pas :-(

Comment faire ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
<script type="text/jscript">
    function Affichage(t) { 
     var a=10;
   a=10+t.value.toInteger();
    alert(a);
       }
 </script>      
 
<input name="TextBox1" type="text" id="TextBox1" onchange="Affichage(this);" onkeyup="verif_nombre(this);" />