Is there a way to change the border color of a text input field to blue when it is not selected and then change it to orange when the field is selected?
input[type="text"]{
border: 1px solid blue;
}
input[type="text"]:focus{
border: 1px solid orange;
}
<input type="text>
https://i.sstatic.net/cvJGi.png https://i.sstatic.net/VHyo2.png
I would appreciate any assistance. Thank you!