1 Answer
New AnswerDisplay grid rows in reconditioning className https://code.sololearn.com/W7rAyXC9d1D2/?ref=app
5/24/2022 4:20:46 AM
Malick Diagne1 Answer
New Answer// 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); }
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message