Friday, December 9, 2016

After ajax form submit value from ckeditor textarea is not sent through post

try

for (instance in CKEDITOR.instances) {
        CKEDITOR.instances[instance].updateElement();
    }

<script src="ckeditor/ckeditor.js"></script>
function savedata() 
{
    for (instance in CKEDITOR.instances) {
        CKEDITOR.instances[instance].updateElement();
    }

    jQuery.ajax({
        type: 'POST',
        url: 'data_save.php',
        data: $("#frmdata").serialize()
     });  
     return false; 

 }

No comments:

Post a Comment