Sử dụng borderBottomColor để đặt màu cho viền dưới.
Ví dụ
<!DOCTYPE html>
<html>
<head>
<style>
#box { border: 2px dashed blue; width: 120px; height: 120px; }
</style>
</head>
<body>
<button onclick="display()">Đặt màu viền dưới</button>
<div id="box"><p>Demo Text</p><p>Demo Text</p></div>
<script>
function display() {
document.getElementById("box").style.borderBottomColor = "yellow";
}
</script>
</body>
</html>