0
Good morning sir. My float is not display grid rows in reconditioning className. Thanks you sir.
Display grid rows in reconditioning className https://code.sololearn.com/W7rAyXC9d1D2/?ref=app
1 ответ
0
// Created by Bob_Li Malick diagne codimed sa
function changeColor (){
var tablerow = document.querySelector (".production table tr:nth-child(4) #quantite");
tablerow.innerHTML = 30;
tablerow.style.backgroundColor = "red";
}
//pour calculer le total quantite je dois selectionner toutes les quantités tr:nth-child (i)
window.onload = function (){
var sum = 0;
var el = parseInt(document.querySelector (".production table tr:nth-child(4) #quantite").innerHTML);
var el2 = parseInt(document.querySelector (".production table tr:nth-child(5) #quantite2").innerHTML);
sum = sum + el + el2 ;
console.log (sum);
}