BS2 Toggle Radio Btn
by TheOrdinaryGeek
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.4/css/bootstrap.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.4/css/bootstrap-responsive.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://rawgit.com/eu81273/jsfiddle-console/master/console.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.4/bootstrap.min.js"></script>
<script src="http://bootstrapdocs.com/v2.0.4/docs/assets/js/bootstrap-button.js"></script>
<link rel="stylesheet" href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap2-toggle.min.css">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<input type="checkbox" value='1' name="wallbox_needs_patched" id="wallbox_needs_patched">
<div class="row">
<div class="span3">
<div class="control-group">
<label class="control-label" for="inventory_number"><strong>QUB ID</strong></label>
<div class="controls">
<div class="input-prepend">
<span class="add-on"><a href="/help.php?id=inventory_number&height=300&width=700" rel="tooltip" class="thickbox" title="What is a QUB ID?"><i class="icon-question-sign"></i></a></span><input type="text" class="input-medium" placeholder="Inventory Number"
name="inventory_number[]" id="inventory_number">
</div>
</div>
</div>
</div>
</div>
JavaScript
$(function() {
$('#wallbox_needs_patched').bootstrapToggle({
on: 'Requested Text',
off: 'Activate',
onstyle: 'success'
});
})