JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<div id="container" class="main-class"></div>

CSS

.main-class {
  width: 500px;
  height: 300px;
  border: 1px solid black;
  background-color: lightgray;
}

JavaScript

$(document).ready(function() {
  var objects = $(".main-class");
  for (var obj of objects) {
    console.log(obj);
  }
});