I have the following script:
<script>
document.getElementById('myId').classList.add('myClass');
</script>
How to alter it and add myClass
into #myId a
element? I have single anchor
element there:
<div id="myId">
<a href="#" title="link">Add class to me</a>
</div>