i have a form having some textfields and a textarea (ckeditor), after onclick button art_title field value is sent to art_save.php page, but value from textarea is not sent. >
You can force CKeditor to update the textarea value using:
for (instance in CKEDITOR.instances) {
CKEDITOR.instances[instance].updateElement();
}
Also, you can use .serialize
for the data - then you won't have to maintain the AJAX code if parameters change:
function saveArt()
{
for (instance in CKEDITOR.instances) {
CKEDITOR.instances[instance].updateElement();
}
jQuery.ajax({
type: 'POST',
url: 'art_save.php',
data: $("#art").serialize()
});
return false;
}