EasyUI Forum
April 29, 2024, 08:20:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: set Checked Checkbox not working  (Read 548 times)
BinaryCode
Newbie
*
Posts: 37


View Profile
« on: February 19, 2024, 05:20:33 PM »


        that.chkEnterAlarm.checkbox('options').checked=data.enter_alarm===1;
        that.chkExitAlarm.checkbox('options').checked=data.exit_alarm===1;
        that.chkSendToWhatsApp.checkbox('options').checked=data.send_alarm_to_whatsapp===1;
       


why above not working event if data.enter_alarm =1, data.exit_alarm=1, but state not checked,

how to set checked programmatically?, i don't use check method
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: February 21, 2024, 12:11:49 AM »

Please call the 'check' or 'uncheck' methods instead.

Code:
that.chkEnterAlarm.checkbox('check');
that.chkEnterAlarm.checkbox('uncheck');
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!