EasyUI Forum
June 19, 2024, 04:36:12 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 a CheckBox's checked/unchecked status?  (Read 5477 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« on: June 26, 2019, 06:00:17 AM »

How to get a CheckBox's checked/unchecked status?
CheckBox need a method which can get the CheckBox's checked/unchecked status.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 27, 2019, 07:24:47 AM »

Call the 'options' method to get this property.
Code:
var opts = $('#cb').checkbox('options');
console.log(opts.checked);
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!