“Como atribuir o BootstrapSwitch usando o jQuery” Respostas de código

Como atribuir o BootstrapSwitch usando o jQuery

$('#toggle-state-switch').bootstrapSwitch('state'); // Get the state
$('#toggle-state-switch').bootstrapSwitch('state', false); // Set the state as off
$('#toggle-state-switch').bootstrapSwitch('state', false, false); // Set the state as off and do not trigger switchChange event
$('#toggle-state-switch').bootstrapSwitch('toggleState'); // Toggle the state
$('#toggle-state-switch').bootstrapSwitch('toggleState'); // Toggle the state and do not trigger switchChange event
Fantastic Frog

Como atribuir o BootstrapSwitch usando o jQuery

$('#disable-switch').bootstrapSwitch('disabled');
$('#disable-switch').bootstrapSwitch('toggleDisabled');
$('#disable-switch').bootstrapSwitch('disabled', true);  // true || false

$('#readonly-switch').bootstrapSwitch('readonly');
$('#readonly-switch').bootstrapSwitch('toggleReadonly');
$('#readonly-switch').bootstrapSwitch('readonly', true);  // true || false
Fantastic Frog

Respostas semelhantes a “Como atribuir o BootstrapSwitch usando o jQuery”

Perguntas semelhantes a “Como atribuir o BootstrapSwitch usando o jQuery”

Mais respostas relacionadas para “Como atribuir o BootstrapSwitch usando o jQuery” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código