EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 10:25:43 AM
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
>
EasyUI for jQuery
>
set Checked Checkbox not working
Pages: [
1
]
« previous
next »
Print
Author
Topic: set Checked Checkbox not working (Read 927 times)
BinaryCode
Newbie
Posts: 38
set Checked Checkbox not working
«
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: 2264
Re: set Checked Checkbox not working
«
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
« 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...