9 lines
228 B
JavaScript
9 lines
228 B
JavaScript
|
|
||
|
var cells = document.querySelectorAll('#proposta_trabalho tbody td:nth-child(3)');
|
||
|
var soma = 0;
|
||
|
|
||
|
cells.forEach(function(cell) {
|
||
|
soma += parseInt(cell.textContent);
|
||
|
});
|
||
|
|
||
|
console.log('A soma do campo "Nº aulas" é:', soma);
|