Switches
It works the same as checkbox logic. The switch is implemented as a switch on and off operation.
// Checked status true or false
$("#checkStatu").prop('checked', true);
// Checked status function
var switchStatus = false;
$("#checkStatu").on('change', function () {
if ($(this).is(':checked')) {
switchStatus = $(this).is(':checked');
alert(switchStatus);
}
else {
switchStatus = $(this).is(':checked');
alert(switchStatus);
}
});
More information or questions: framework@ford.com.tr