Posts by Arthur Hess • 111 points
2 posts
-
0
votes3
answers230
viewsA: Reduce code repetition with loop creation (loop)
How about an alternative solution with the function Array.prototype.foreach(): var elementos = document.querySelectorAll("[id^='baixo_final']"); elementos.forEach(function(elemento) {…
-
1
votes2
answers2699
viewsA: Hide entire table row by javascript
One way to do this is by using the querySelectorAll() (available in both Document and Element) This function returns an array of elements that you can iterate through. You can, for example, define a…