JavaScript – Change the Bottom Border of Div

To change the bottom border of a div using JavaScript, get reference to the element, and assign required value to the element.style.borderBottom property.

Example

Conclusion

In this JavaScript Tutorial, we learned how to change the bottom border of a div using JavaScript.