when i focus a element change element css

Solutions on MaxInterview for when i focus a element change element css by the best coders in the world

showing results for - "when i focus a element change element css"
Bryant
05 Jan 2021
1  <input class="inputTag" type="text" value="">
2
3	//The input button must be placed at the top.
4	Otherwise the focus will not work .
5
6  <h1 class="h1Tag">Safin</h1>
7
8
9	.h1Tag {
10      background: gray;
11    }
12
13    .inputTag:focus+.h1Tag {
14      background: blue;
15    }
16
17
18
19// My youtube:'https://www.youtube.com/HasibulIslambd' 
20