I have this form and several divs in it. The matter is, that color of one div is set with javascript, randomly, and border of another div has to be in one color with first one. It gets even more complicated, because several divs have one class names. Basically, what I mean here is that one house should be of one color, and "roof" depends on content, color of which is set randomly with js. worked on this for quite a long time, but seem to have no solution(
I guess, javascript should look something like this
document.getElementByClassName("roof").style.border-bottom-color = document.getElementByClassName("contents").style.background-color;