How to add many divs in JS?

How to add many divs in JS?
0

#1

Hi! How to add many divs in JS and apply some method?
For example

$("div.class, div.class,div.class").removeClass("hide");

#2
$(".div").each(function(index, div) {
    // do stuff 
}))

#3

What you’re doing should work, see this example.