I’m used to JQuery but not to pure Javascript.
I have this:
document.getElementById("div-id a").style.javascript_property = "color: red;";
OF COURSE it doesn’t work.
What i want is that all a-tags in one specific div with an id=’div-id’ to become red.
in jquery i would write:
$('#div-id a').css('color', 'red');
But i need it in pure js.
Use: