-1
<div class="content">
<span class="title" for="input_example">Título do campo</span>
<div class="form-content">
<input type="text" id="input_example" name="input_example">
</div>
</div>
Is there any way to do CSS with which the .title {}
become like display:none
, if the text input has the value filled in?
I tried, but I could only do it when the div
stays after the input, I would like to do this with it as it is, it is possible?
Lucas, can you explain what was done? only putting up css may not help who needs to understand how to solve :)
– Ricardo Pontual
Lucas he managed to do it that way, "but I could only do it when the
div
stays after input". He wants to do with thediv
orspan
on top of theinput
.– NoFace
Man, thanks, excellent reply. But it was exactly this alternative that I ended up coming alone, but thank you so much! I could also use position Absolute, but I was looking for something better, and that was the best way out.
– Ivan Ferrer