EasyUI Forum
February 23, 2018, 05:28:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to get switchbutton value?  (Read 247 times)
erkin
Newbie
*
Posts: 25


View Profile
« 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: 1303


View Profile Email
« 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: 25


View Profile
« Reply #2 on: January 11, 2018, 07:06:44 AM »

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!