How to use checkbox with javascript?

1 Answer 90 Views
Checkbox
WoorimartDEV
Top achievements
Rank 1
Iron
Iron
WoorimartDEV asked on 28 Oct 2022, 03:07 AM

HTML


<input type="checkbox" id="chkShowPopEventDay" />

JavaScript


$("#chkShowPopEventDay").kendoCheckBox({
    label: "ShowPopEventDay",
    checked: true,
});

 

I tried to use the check box by referring to the address, but the message appears as follows. Is there anything wrong?

Reference URL: https://demos.telerik.com/kendo-ui/checkbox/index

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Nov 2022, 11:33 AM

Hello, Doyeong,

You are probably running an older Kendo version in which the CheckBox has not yet been introduced as a separate widget. Please try it with the latest Kendo version.

Let me know how that goes.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

WoorimartDEV
Top achievements
Rank 1
Iron
Iron
commented on 02 Nov 2022, 01:07 AM

Okay, Thanks I try it.
Tags
Checkbox
Asked by
WoorimartDEV
Top achievements
Rank 1
Iron
Iron
Answers by
Martin
Telerik team
Share this question
or