Changing text input border color using CSS upon clicking
Hey there!
I have a text field in my HTML:
<input type="text" value="test" id="ff">
Currently, I am using the following CSS to define its border:
#ff {
border: 1px solid #000;
}
I would like to change the border color to red when the field is clicked.
For instance, similar to how Google's search field changes its border color to blue when you click on it to type something.