function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WEN JIEWEN JIE 

How to get rich textarea value by js or jquery

Hi,

I have a problem when I developing my VF page.
I have a sobject which has a field, the type for this field is "Rich Text Area". And on my VF page, I use "<apex:inputField>". Then for some reason, I need to get value from this rich text area by js or jquery.
At before, I check the page source, then use the following code to get the content from this text area:
"var internalRequirements = document.getElementById('auditPage:auditForm:auditPageBlock:itnternalRequirements:textAreaDelegate_InternalRequirements__c_frame').contentDocument.body.innerHTML;"

But it can't work anymore now.

So does anyone have good solution for this?


Thank you!
SarfarajSarfaraj
Hi

Please refer last comment of this post. 

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AkZtIAK

Regards
Akram