1
I would like when content was added to the input the previous text "Label" turned blue. Are inside a div, a p and an input, the goal is when writing in the input the previous p turned blue.
.subInput:nth-child(-1), .subInput:focus{/*Tentei usar isso, mas não deu certo*/
color: blue;
}
<div class="Subscribe">
<div id="CxSub1" class="caixadeSubscribe">
<p class="tituloSub">TITULO. Esse Titulo tem que ficar azul quando escrever no input</p>
<input id="subInpt1" type="text" name="LoremIpsum" class="subInput" >
</div>
</div>
}
It worked!! Thank you very much. I now learned this function "Within"
– Marlon Viana
Was worth the mention :)
– hugocsl