pada perubahan swich

$('.switch input[type="checkbox"]').on('change', function() {
    console.log('Yaay, I was changed');
});
Repulsive Rhinoceros