I use Bootstrap switch plugin to make my checkboxes looks like switch buttons. I need to check if the checkbox is checked in jQuery. I Googled a lot and I tried some advice
Based on a comment in the accepted answer, here's how I solved this for a Terms and Conditions checkbox in bootstrap:
HTML
Javascript (with jQuery)
$("#agreeTAC").change(function(){
var agreed = $(this).is(':checked');
console.log("agreeTAC value changed and is ", agreed);
if(agreed === true) {
// do 'true' stuff, like enabling a 'Continue' button
}
else {
// do 'false' stuff, like disabling a 'Continue' button
}
})