clear data from jHTMLArea

Feb 5, 2012 at 10:01 PM

I have a jquery-ui dialog opening with a jHTML text area in it.

The first time you press 'Update' the form the text area is in is serialized and posted via ajax to be sorted by a PHP script.

However, if you open the dialog again you can edit the text but when the form is serialized it serializes the old textarea (i.e. all extra changes are ignored.)

 

Is this because there are multiple instances of the JHTMLArea and only the original/first one is being used?

 

If I were to assign the textarea with a random id and call jHTMLArea on that random id each time would this solve the problem?