let's say I have my HTML document like
<a href='#' class='class_1'>Content</a>
<a href='#' class='class_2'>Content</a>
<a href='#' class='class_3'>Content</a>
<a href='#' class='class_4'>Content</a>
<a href='#' class='class_5'>Content</a>
Now, I have selected those anchor tags with querySelectorAll
and looped through them using forEach.
Inside forEach, after calculating some stuff, I need to apply a style to a specific anchor tag with its class.
anchorList.forEach(link => {})
How can I select that link with a certain class without using another loop?