EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kingor2001 on June 26, 2019, 06:00:17 AM



Title: How to get a CheckBox's checked/unchecked status?
Post by: kingor2001 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.


Title: Re: How to get a CheckBox's checked/unchecked status?
Post by: stworthy 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);