# Inplace editor and textarea

**URL:** <https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943>\
**Category:** Rails\
**Created:** [April 13, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943 "2007-04-13T18:09:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Val](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@Joe\_Val](https://www.ruby-forum.com/u/Joe_Val)\
**Post date:** [April 13, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943/1 "2007-04-13T18:09:22Z")

</div>

Hi,

I have an inplace editor and I can access the innerHTML value of the  
created form. However the innerHTML gives “…  
…”

How can I access the textarea value? I tried to do  
innerHTML.textarea.value but it didn’t work. Any ideas will be  
appreciated.

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![Joe\_Val](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@Joe\_Val](https://www.ruby-forum.com/u/Joe_Val)\
**Post date:** [April 13, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943/2 "2007-04-13T18:35:54Z")

</div>

It looks like your in-place editor contains a text area that it is  
manipulating.

You could try innerHTML.textarea.innerHTML to get the content of the  
text area. But, the in-place editor probably has a documented way to  
access the content that uses JavaScript.

Michael

---

<div class="post-metadata">

**Author:** ![Joe\_Val](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@Joe\_Val](https://www.ruby-forum.com/u/Joe_Val)\
**Post date:** [April 13, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943/3 "2007-04-13T21:21:48Z")

</div>

MichaelLatta wrote:

> It looks like your in-place editor contains a text area that it is  
> manipulating.
> 
> You could try innerHTML.textarea.innerHTML to get the content of the  
> text area. But, the in-place editor probably has a documented way to  
> access the content that uses JavaScript.
> 
> Michael

Thank you, Michael.

\*t

produces:

‘\<textarea name=“value” … \> … …’

\*text.iH

produces:

Error:  
$(“jot\_jot\_1046\_in\_place\_editor-inplaceeditor”).innerHTML.textarea has  
no properties  
Line: 1

I can access the value of the textarea field when I use

\*elementsbyname

However, if there are two inplace editors “open” on the screen then the  
above call for the second editor returns the value of the first one.

Thank you for any insight you can provide.

Joe
