div style border color javascript

 

 

 

 

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.document.getElementByClassName("roof").style.border-bottom-color document.getElementByClassName("contents"). style.background-color Google. Facebook. JavaScript border-color/color styling. Ask Question.

(