slt les amies,j'ai creer ce script mais il ne marche plus,voila le code :
<script type="text/javascript">
function calcul(){
$('#test').click(function(){
var total = 0;
var total1 = 15 ;
var total2 = 70 ;
var total3 = 15;
total = parseInt(total1) + parseInt(total2) + parseInt(total3);
alert(total);
});
}
</script>
code de boutton pour appler la fonction :
<input type="button" value="calculer" class="next" id="test" onclick='calcul()'/>
Modifié par mexes (04 Sep 2012 - 17:40)
<script type="text/javascript">
function calcul(){
$('#test').click(function(){
var total = 0;
var total1 = 15 ;
var total2 = 70 ;
var total3 = 15;
total = parseInt(total1) + parseInt(total2) + parseInt(total3);
alert(total);
});
}
</script>
code de boutton pour appler la fonction :
<input type="button" value="calculer" class="next" id="test" onclick='calcul()'/>
Modifié par mexes (04 Sep 2012 - 17:40)