"Checkboxes and radio addons"
Bootstrap 3.3.0 Snippet by alejandrosalgadoram

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="row"> <div class="col-lg-6"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox" aria-label="..." id="checado" onclick="activarFiltros('checado');"> </span> <input type="text" class="form-control" id="texto" aria-label=".." disabled="disabled"> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> <div class="col-lg-6"> <div class="input-group"> <span class="input-group-addon"> <input type="radio" aria-label="..."> </span> <input type="text" class="form-control" aria-label="..."> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row -->
function activarFiltros(id_input) { var valor = document.getElementById(id_input).checked; if (valor === true) { $("input[type=text]").prop("disabled", false); } else { $("input[type=text]").prop("disabled", true); } }

Related: See More


Questions / Comments: