1
I’m trying to select the other parent element of a table, but this not rolling track CSS.
HTML
<table>
<tr>
<td>
<div>
<input type="radio" class="voo-radio" name="voo-radio">
</div>
<div>
<label>
<p>R$ 200,00</span></p>
<span class="small">Comprar agora</span>
</label>
</div>
</td>
</tr>
<tr>
<td>
<div class="exibe-detalhes">
Aqui vem o conteudo
</div>
</td>
</tr>
</table>
CSS
.exibir-detalhes {
display: none;
}
input[type="radio"] {
display: block;
}
input[type="radio"]:checked + .exibir-detalhes {
display: block;
}
With CSS you can only select siblings, children or adjacent. You would have to use Javascript for this.
– Sam
Thank you, with jquery with you?
– Cristiano Facirolli
He could not use classes together with ntn-Child(2) ?
– Léo Cunha