ikb,
il y a 10 ans
var sommetest=0;
var numq=0;
var pourcentageTest ;
$("input[id^='pc']").each((function() {
numq++;
var a=$(this).val();
var b=parseFloat(a);
sommetest=((sommetest) + b) ;
}));
pourcentageTest=parseFloat((sommetest/numq)) ;
alert(pourcentageTest);
la sommation marche mais le probléme maintenant la division ne marche pas alert affiche Nan