js? (I already tried with el.style["myprop"] but it didn't work)
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style
ℹ️ Read our rules before any activity: The Devs Group Rules
You can use, document.getElementById('myId').classList.add('name_of_class'). Then define the class with the css property in your css file
Give it a class, put styles under that class?
document.querySelector(element).style.property = value
Обсуждают сегодня