JSFiddle - React, Tailwind, and code Playground

by manoj jasti

HTML

<div class="test"> text</div>

JavaScript

$(document).ready(function(){

    var groups = 5; // length of methods
    var count =1;
    var nodeHtml ="";
    var quesCount=12;
    for(var i = 0;i<groups;i++){
      nodeHtml += "<div>"+(i+1)+"</div>";
        for(var j=0;j<quesCount;j++)
        { 
             if(j==11){
            nodeHtml += "<div>"+(count)+" here is the comment section </div>";
                 count++;
            }else{
            nodeHtml += "<div>"+(count++)+"</div>";
            }
           
        }
        
    }
    $(".test").append(nodeHtml);
  

});