help with for loop
straight to the point.
i have a function called count. I'm trying to loop through the array or what is it called. But I only getting the last number in the array. It isnt calculating.
here is my code
var getal =document.getElementsByName("subtots");
var lengte = getal.length;
for(var i = 0; i <= lengte; i++ )
som=+ parseFloat(getal[i].value.replace(',','.')) || 0;
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread