We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Checkboxes on RichText Control

Thread ID:





144568 May 13,2019 12:36 AM UTC May 13,2019 10:45 AM UTC jQuery 1
Tags: ejRTE
Damien Turnbull
Asked On May 13, 2019 12:36 AM UTC

We are wanting to use the rich text box control in the hope that we can embed checkboxes for the user to check.

Whilst we've been successful in doing this, when we call getHtml() the checkbox values are not returned.

Is it possible to have the rich text control working with checkboxes?


Ashokkumar Balasubramanian [Syncfusion]
Replied On May 13, 2019 10:45 AM UTC

Hi Damien,  
Thanks for contacting Syncfusion Support.  
By default, getHtml() method of RTE will return the plain HTML content within RTE and this will not return the value of control rendered within RTE. Since RTE editor content will be rendered as Iframe, checkbox element cannot be directly tracked in DOM with normal jQuery. We suggest you get the value of checkbox by navigating with Checkbox id from RTE’s iframe as shown below 
function getValue() 
                            var check1 = $("#rteSample_Iframe").contents().find("#Checkbox1").is(":checked"); 
                              var check2 = $("#rteSample_Iframe").contents().find("#Checkbox2").is(":checked"); 
                              alert("Checkbox 1 is checked : " + check1 +"\n Checkbox 2 is checked:" + check2); 
We have attached a sample for your reference in the following link 
Please let us know, if you need any further assistance. 
Ashokkumar B. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon