@MikDra1
Posted
@seshadrianadasu
If you have problem with DOM selection there are some tips
To select an id:
document.getElementById('')
To select a class
document.getElementByClassName('')
You can also use ``document.querySelector('')
To select multiple elements with the same class
document.querySelectorAll('')
This querySelectorAll will return a node list which we need to convert to array to make use of array methods and here is how we do that:
Array.from(document.querySelectorAll(''))
If this comment was useful please mark it as helpful 💗
Good job and keep going 😁😊😉
Marked as helpful