1
I have a question in Jquery. I have the following code, example:
<div class="col-sm-2">
<div class="md-checkbox">
<input type="checkbox" id="checkbox1" class="md-check">
</div>
</div>
<div class="col-sm-2" hidden="hidden">
<input type="text" class="form-control" id="form_control_1">
</div>
<div class="col-sm-2" hidden="hidden">
<input type="text" class="form-control" id="form_control_2">
</div>
<div class="col-sm-2" hidden="hidden">
<input type="text" class="form-control" id="form_control_3">
</div>
What I need to do is that when someone scores the checkbox1, it must show the inputs of divs
who have the attribute Hidden.
In case it would be something like climbing up to the father of checkbox, then climb up to the father of that div, then set as visible as Divs neighbours.
How can I do that?
When unchecking the checkbox, you should hide the divs as well?
– Marcus Vinicius