EasyUI Forum

General Category => Bug Report => Topic started by: erkin on January 11, 2018, 04:28:35 AM



Title: How to get switchbutton value?
Post by: erkin on January 11, 2018, 04:28:35 AM
A switchbutton component has a method 'setValue'. But how to get current value, method 'getValue' not exists?


Title: Re: How to get switchbutton value?
Post by: jarry on January 11, 2018, 06:52:33 AM
Call this code to get the value.
Code:
var value = $('#sb').switchbutton('options').value;
console.log(value);


Title: Re: How to get switchbutton value?
Post by: erkin on January 11, 2018, 07:06:44 AM
Thanks