LCweb-ita / LC-switch

Superlight vanilla javascript plugin improving forms look and functionality

Home Page:https://lcweb.it/lc-switch-javascript-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method to toggle state

ramakrishnamundru opened this issue · comments

Can you add a public method like lcs_on() and lcs_off() to toggle the switch eg: lcs_toggle(). It will be really useful.

commented

Hi! Nice suggestion: it has been added in v1.1 (b111a66)
The code is:

$('input').lcs_toggle();