EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 02, 2024, 03:20:52 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
How to get switchbutton value?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to get switchbutton value? (Read 8654 times)
erkin
Newbie
Posts: 29
How to get switchbutton value?
«
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?
Logged
jarry
Administrator
Hero Member
Posts: 2262
Re: How to get switchbutton value?
«
Reply #1 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);
Logged
erkin
Newbie
Posts: 29
Re: How to get switchbutton value?
«
Reply #2 on:
January 11, 2018, 07:06:44 AM »
Thanks
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...