Aide javascript + operateur

Fermé
balbeur - 17 avril 2008 à 14:29
 Utilisateur anonyme - 23 avril 2008 à 11:15
Bonjour,


Le code marche a merveille !
J'aurais souhaité aditionner les variables defini plus haut , j'ai donc fais


<tr><SCRIPT language="Javascript">
<!--

function CalculerTotal1000() {

if(!isNaN(total) && !isNaN(total2))
total1000 = total + total2;
else
total1000 = 'Merci de saisir des nombres';
document.getElementById('total1000').value = total1000;
}

//-->
</SCRIPT>
<div align="center"><br>
Montant total de votre commande <span class="Style4">
<input name="total1000" id="total1000" size="10" maxlength="5">
</span> €
<td style="text-align: center; vertical-align: top;"><span class="Style4">
<input name="Calculertotal1000" id="Calculertotal10" size="50" type="button" onclick="CalculerTotal1000();" value="Calculer"/>
</span></td>


Mais apparemment ca ne marche pas, voyez vous une erreur.
Faut il encore redefinir des variables, alors qu'elle sont déja utilisé plus haut ?

1 réponse

Utilisateur anonyme
23 avril 2008 à 11:15
Tiens comme on se retrouve LOLLLLLLL Je mets le lien vers la réponse : http://www.commentcamarche.net/forum/affich 5966515 operateur et php
0