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 enable or disable switch

barthamark opened this issue · comments

A disabled input initializes with an lcs_disabled class but if you want to programmatically enable it you need to remove the class and also remove the disabled attribute from the input.

Adding .lcs_enable() and .lcs_disable() methods would wrap these two changes into one method.

commented

Interesting. Most probably I'll implement them in upcoming v2