Tengo un conjunto de checkbox y quisiera saber si está al menos uno marcado, cómo podría hacerlo, para que cuando me muestre una tabla que al momento está oculta con la propiedad hidden="hidden" éste es mi código del diseño, pero no encuentro cómo saber cuando un checkbox esté marcado, y que se ejecute una acción. quiero que cuando uno esté marcado, se muestre una tabla, y cuando esté desmarcado se oculte de nuevo
<div class="form-group">
<label class="control-label col-md-3">
Preguntas
</label>
<div class="col-md-9">
<table class="table table-striped table-bordered table-hover" id="visualizacionPreg">
<thead>
<tr class="heading">
<th style="width: 10%">#</th>
<th colspan="2" style="text-align: justify; width: 60%;">Pregunta</th>
<th style="width: 10%;">Tipo</th>
<th style="width: 20%;">Opciones</th>
<th>Respuesta(s)</th>
<th>Valor</th>
<th>Negativo</th>
<th>Prioridad</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
aquí la tabla oculta
<div class="form-group">
<label class="control-label col-md-3">Notificar respuestas a </label>
<div class="col-md-9">
<table class="table table-striped table-bordered table-hover" id="Notificar" hidden="hidden">
<thead>
<tr class="heading">
<th class="table-checkbox">
<input type="checkbox" class="group-checkable" data-set="#Notificar .checkboxes" />
</th>
<th>Id</th>
<th>Nombre</th>
<th>Correo</th>
<th>Puesto</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
Intente ésto
$("#visualizacionPreg").find("checkbox").each(function () {
if ($(this).prop('checked') == true) {
alert("Hola")
}
});
js
?checkbox
dentro delid="Notificar"
no dentro devisualizacionPreg
checkbox
que tienes esta dentro de la tabla que esta oculta, te sugiero que replantees lo que quieres.