0

I am trying to change the number of same div by using class name. Is there a simple way I can repeat this same code using class name, say for example repeat the div with the class name "arco" 100 times using javascript?

<div class="arco">
        <div class="scienceArticles">
            <div class="remove22">
                <img src="./assets/img/remove.png" alt="remove" class = "remove2">
            </div>
            <div class="options22"></div>
                <img src="./assets/img/more.png" alt="options" class = "options2">
            <h6 class="texts2">
                ...
            </h6>
            <a class="texts11" href = "article.html" target ="_blank">
                <h6 class="texts1">...</h6>
            </a>
            <a class="texts33" href = "article.html" target="_blank">
                <h6 class="texts3">...</h6>
            </a>
        </div>
    </div>
trincot
  • 263,463
  • 30
  • 215
  • 251
Shital Ghimire
  • 103
  • 1
  • 5

0 Answers0