### Bootstrap Checkbox

Example handling a Bootstrap Checkbox.
HTML Code Snippet from Index.html (in Objects/www Folder)
`<div class="form-group form-check">
<input id="checkboxoption" type="checkbox" class="form-check-input">
<label class="form-check-label" for="checkboxoption">Option</label>
</div>
`
`<script>
$('#checkboxoption').change(function() {
b4j_raiseEvent("checkboxoption_event", {"id": this.id, "state": $(this).prop('checked') });
// alert($(this).prop('checked'))
});
</script>
`
B4J Code
`Sub Class_Globals
Private checkboxoption As JQueryElement 'Checkbox option
`Private Sub checkboxoption_event(params As Map)
Log("checkboxoption_Click :: Start = " & params.Size)
Dim State As Boolean = params.Get("state")
lblmessage.SetHtml("

## The state of checkboxoption: " & State & "

")
Log("checkboxoption_Click :: End")
End Sub`
Log Sample
checkboxoption_Click :: Start. State = true
`

Changed: 2018-05-26 15:25, Category: WebApps jQuery Bootstrap, File: T6C281M2179.htm, ID: 2179