В цикле Foreach я должен установить шесть атрибутов циклических элементов < /p>
let el = Array.from(element.parentElement.parentElement.children);
el.forEach((item) => {
item.querySelector("input").setAttribute("disabled", "disabled");
});
< /code>
Но от этой ошибки:
свойства null (чтение 'setattribute') < /p>
Подробнее здесь: https://stackoverflow.com/questions/796 ... tattribute