Issue with cftextarea using inbuilt fckeditor

I have added my cftextarea as in my form as:

<cftextarea id="answer3" skin="office2003" wrap="hard" name="answer3" cols="60" rows="5" tabindex="3" value="#url.answer3#" richtext="yes" toolbar="Default" class="textarea_3"></cftextarea>

when i view the same in my browser, it shows as:

<textarea name="answer3"  id="cf_textarea1323885145535" class="textarea_3" tabindex="3" cols="60" rows="5" wrap="hard" ></textarea>

its id changes everytime it is refreshed..

Now the thing is, i am clearing all the form fields on submit, i am using it as:


it resets the whole form and clear all fields, but it does not clear the textarea with riuchtext, i am confused why it is not clearing

Let me know, Please, Buy the way i am doing the call ajax based and it is returing the values without page refresh..

LVL 16
Gurpreet Singh RandhawaWeb DeveloperAsked:
Who is Participating?
Try this :
var current_textarea_ID = document.getElementsByName("answer3")[0].id; // I assume you've only one form element with the name "answer3" : your textarea
var Editor1 = FCKeditorAPI.GetInstance(current_textarea_ID);

Open in new window

Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Excellent mate
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.