EasyUI Forum

General Category => General Discussion => Topic started by: jega on August 18, 2016, 10:06:26 PM



Title: State of switchbutton
Post by: jega on August 18, 2016, 10:06:26 PM
How to get the State before submit. Like $(obj).switchbutton('checked') answering true/false or whatever.



Title: Re: State of switchbutton
Post by: stworthy on August 19, 2016, 01:34:14 AM
Call this code to get the checked state.
Code:
var checked = $(obj).switchbutton('options').checked;
alert(checked);


Title: Re: State of switchbutton
Post by: jega on August 21, 2016, 12:43:38 AM
Ah very Nice. Thanks