Is it possible to change the styling of a parent element when focusing on a child element?
I'm trying to change the background-color of the parent element when focus is applied to a child <input> element. When looking around I've only found solutions that involve changing an element that comes after the first element.
My code:
So; when focus is applied to the
<input>
element I want something to happen to the <div>
3 Replies