border: thin dotted #FF0000;
<script type="text/javascript">
document.getElementById("p1").style.borderBottom="thick solid blue";
<input type="button" onclick="changeBorder()" value="Change bottom border" />
<p id="p1">This is a paragraph with a border</p>