Sample html:
<div class="container" id="neighbor-color-div">
<button id="change-neighbour-color" onclick="change_neighbor_color()">Change my
neighbour color!</button>
<button id="neighbour">Click the other button!</button>
</div>
<script src="./main.js" defer></script>
Sample main.js:
function change_neighbor_color() {
...
}
I don't know how to do that, but after I click the "change-neighbor-color" id button the text color of the other button should change to blue.
Thank you for your help.