Looking to display a p
element when a input[type=radio]
is checked.
Here is the HTML code:
<div class="form-group checkbox">
<input type="radio" id="pago-deposito" name="[transaccion]pago"/>
<label for="pago-deposito">check1</label>
<p id="pago-hint">
//hints
</p>
</div>
These are the CSS styles I've tested:
.checkbox > input#pago-deposito[type=radio]:checked + p#pago-hint{
display: block;
}
#pago-hint{
display: none;
line-height: 40px;
}
I have successfully used this method in another instance, but it's not working here for some reason.