Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

clear ckeditor textarea jquery

function CKupdate(){
    for ( instance in CKEDITOR.instances ){
        CKEDITOR.instances[instance].updateElement();
        CKEDITOR.instances[instance].setData('');
    }
}

$(document).ready(function(){   
    CKEDITOR.replace( 'comment-textarea' );

    var options = {
        success: function (html) {
            $('#comments').append(html);
        },
        clearForm: true 
    };

    $('#formcomments').submit(function() {
        CKupdate();
    });
    $('#formcomments').ajaxForm(options);
}); 
Comment

PREVIOUS NEXT
Code Example
Javascript :: uncaught type error event listener error 
Javascript :: close button react 
Javascript :: Symbol Methods javascript 
Javascript :: gsap keyframes 
Javascript :: window close function in javascript 
Javascript :: show filed of object javascript 
Javascript :: switch statement in javascript 
Javascript :: rounding to two decimal places 
Javascript :: koa access request body 
Javascript :: graphql yoga access http headers 
Javascript :: jquery get multiple selected option value 
Javascript :: lexical environment in javascript 
Javascript :: hide urls in .env in react app 
Javascript :: javascript Sum of all the factors of a number 
Javascript :: krakend config example 
Javascript :: java script append element to array 
Javascript :: create a javascript json object 
Javascript :: socket-client-io for reconnection in js or javascript 
Javascript :: discord.js v12 how to set owner commands 
Javascript :: import ipcrenderer in react 
Javascript :: pandas json_normalize column with json array 
Javascript :: javascript got device ip 
Javascript :: useref in react hooks 
Javascript :: cogo toast 
Javascript :: redis to promise 
Javascript :: is focus vanilla javascript 
Javascript :: summernote mentions ajax 
Javascript :: Remove an item by index position 
Javascript :: jquery parse html 
Javascript :: react-multi-carousel equal spacing issue 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =