Changing texts

You can obviously customize shown texts, or also completely hide them. Just declare two custom strings during plugin initialization

$('input').lc_switch('on-string', 'off-string');

Public functions

There are also three public functions you can use on initialized elements

Remotely check one or more fields

$('the-field-selector').lcs_on();

Remotely un-check one or more fields

$('the-field-selector').lcs_off();

Restores original structure on one or more fields

$('the-field-selector').lcs_destroy();

Events

LC Switch also triggers three events to help developers in advanced usages. You can bind fields status change or know whether they are checked or not. Event names are: lcs-statuschange – lcs-on – lcs-on