JavaScript – Change the Top Border of Div
To change the top border of a div using JavaScript, get reference to the element, and assign required value to the element.style.borderTop
property.
Example
Conclusion
In this JavaScript Tutorial, we learned how to change the top border of a div using JavaScript.