Is there a way to set a border for a div box using JavaScript similar to using border:2px solid #000; in CSS?
Can this be done within the following for loop?
elements = document.getElementsByClassName("box");
for (var i = 0; i < elements.length; i++) {
elements[i].style.backgroundColor="#ff33ff";
}