EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 17, 2024, 07:17:59 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
>
General Discussion
>
State of switchbutton
Pages: [
1
]
« previous
next »
Print
Author
Topic: State of switchbutton (Read 8690 times)
jega
Full Member
Posts: 191
State of switchbutton
«
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
Re: State of switchbutton
«
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
Re: State of switchbutton
«
Reply #2 on:
August 21, 2016, 12:43:38 AM »
Ah very Nice. 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...