How can I generate horizontal JavaScript numbers so that they correspond to the days of the month
Advertisements This can write out the number vertically but not horizontal and it doesn’t give the 7 14 21 28 number breaks const getDay = document.getElementById(‘days’); const getWeek = document.getElementById(‘week’); getWeek.innerHTML = ‘<tr><th>H</th><th>K</th><th>Sz</th><th>Cs</th><th>P</th><th>Sz</th><th>V</th></tr>’; for (let i = 1; i < 32; i++) { getDay.innerHTML += ‘ <tr><td id=”‘ + i + ‘day” class=”days” onclick=”open’ +… Read More How can I generate horizontal JavaScript numbers so that they correspond to the days of the month