АЕ
<script>
function genTagId(newID) {
const all = document.getElementsByClassName('tableID');
for(let el of all) {
if (el.id === undefined) {
el.id = newID;
console.log('Тут сгенерированный id: ' + el.id);
}
}
}
</script>
{% for t in arrTime %}
<tr >
<td>
{{ t }}
</td>
<td class="tableTD" >
{% for s in arrStatusTime %}
{% if s == t %}
{% for key,value in arrUslugaName.items %}
{% if key == t %}
<strong style="color: #ff1200;">{{value}} </strong>
<script>
genTagId('newID')
</script>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if not arrStatusTime and not arrUslugaName %}
<strong style="color: #0d7f00;">Время свободно</strong>
{% endif %}
</td>
Не прокатило
Ошибки нет, но и id не назначились