0
Talk, you guys, baby?
I am making a page that displays a contract for the person. There are some fields that can be filled. But as it sometimes gets long, I’m trying to make a simplified mode, which when activated, shows only the input fields.
I thought of using jquery to hide everything and display only inputs, but when applying in the general context it does not let display what is inside. Is there any way to re-display items that were hidden by the parent element?
An example
<div id="result">
<p>Aqui um paragrafo</p>
<p>Outro paragrafo: Preencha <input type="text" class="resize" /></p>
<p>Outro input <input type="text" class="resize" /></p>
</div>
So I thought it would work, because the parent element
$("#result").hide(); //Ou talvez $("p").hide();
$("input").show();
I need to apply a display:None somehow in the overall context, so I can display only the inputs with a nicer formatting.
Any suggestions?
Face but what’s the sense of showing a lot of empty input, no label, no text without placeholder... Your question got a little confusing
– hugocsl
So, in my inputs I have a data attribute, and I use it in css to display with a before, there it works as a label. I made the example very simple because the focus is to display what is inside a hidden element
– Rafael