Javascript (JQuery) does not fill content into the textarea when form submitting

211 Views Asked by At

Possible Duplicate:
Textarea content is not included in $_POST array sometimes, but is at other times.

I have a form which is sent by POST, in it I have a textarea. Here is the code

<textarea name="content" id="default" class="admintableinput" cols="80" rows="20"></textarea>

I have used the markItUp plugin for text editing. When the plugin is used on the textarea it doesn't enter any content into the $_POST array.

I then tried a var_dump($_POST) and got this when the plugin was used:

Array ( [title] => title [author] => author [summary] => summary [Category1] => 3 [image] => image [action] => Save Article )

When the plugin isn't used var_dump produces this:

Array ( [title] => title [author] => author [summary] => summary [content] => content [Category1] => 4 [image] => image [action] => Save Article ) 

So any content entered into the textarea is only submitted without the plugin. But I have no idea why in the var_dump it doesn't even know there is a textarea there.

It must be a Javascript issue, I'm using the JQuery library.

Does anyone have any suggestions? Thanks in advance.

1

There are 1 best solutions below

1
On

I think that your plugin doesn`t set value for your textarea. Check for this.