Why not apply the styles?

Why not apply the styles?

$(function() { 
 var child = document.querySelector('#section-one .wrap');
 for (i = 0; i <= 5; i++) {
 var scetid = "#t" + i;
 var addstyle = document.querySelector(scetid);
 var div = document.createElement('div');
 div.className = "save energy";
 div.id = "t" + i;
child.appendChild(div);
 addstyle.style.width = "10px";
}
});
June 3rd 19 at 21:00
0 answer

Find more questions by tags JavaScript