When we add ckeditor textarea, it shows default text in the textarea – ‘This is my textarea to be replaced with CKEditor’.
To remove this default text from textarea, just use the below code :
CKEDITOR.instances.TEXTAREAID.setData('');
When we add ckeditor textarea, it shows default text in the textarea – ‘This is my textarea to be replaced with CKEditor’.
To remove this default text from textarea, just use the below code :
CKEDITOR.instances.TEXTAREAID.setData('');
You can check if the checkbox is checked or not using below code:
$('#CHECKBOXID').is(':checked');
$('.CHECKBOXCLASS').is(':checked');
The above statement will return TRUE if the checkbox is checked and returns FALSE if it is not checked.