EasyUI Forum
May 17, 2024, 07:17: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: State of switchbutton  (Read 8690 times)
jega
Full Member
***
Posts: 191


View Profile
« on: August 18, 2016, 10:06:26 PM »

How to get the State before submit. Like $(obj).switchbutton('checked') answering true/false or whatever.

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
Logged
jega
Full Member
***
Posts: 191


View Profile
« Reply #2 on: August 21, 2016, 12:43:38 AM »

Ah very Nice. 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!