Html change border color when clicked code example
Example 1: onclick button border color change
.border1{
border: 1px solid red;
}
.border2{
border: 1px solid red;
}
.bordeorange{
border: 1px solid orange;
}
Example 2: onclick button border color change
function clickimageone(el){
el.style.border = "1px solid blue";
document.getElementById("border2").className="borderorange";
}