My apologies for my low level of English
I use to load a page using jQuery, and I use nicEdit on this page, and I send data to another page using jQuery. But it just sends an empty value instead of what the user wrote in the editor (if I define a default value for my text area, it just sends a default value, not text written by the user). What is the problem and what is the solution?
Thanks.
UPDATE After reading this related article , and he comments at the end and reads the other articles I found, should use this way before submitting the form:
nicEditors.findEditor('textarea_id').saveContent();
To do this, I use jquery to select any text field and call the .each() jquery function. For example:
$('textarea').each(function(){ var IDOfThisTextArea = $(this).attr('id'); nicEditors.findEditor(IDOfThisTextArea).saveContent() });
This job is great for a text box created in advance. But I have a text box that was dynamically created using jQuery that the findEditor() function above did not find them and did not saveContent() on them.
For this problem do you suggest ??????
Tnx
jquery edit nicedit
ABDeveloper
source share