# Textarea clear in RJS stopped working with 2.1.1

**URL:** <https://www.ruby-forum.com/t/textarea-clear-in-rjs-stopped-working-with-2-1-1/156026>\
**Category:** Rails\
**Created:** [December 19, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/textarea-clear-in-rjs-stopped-working-with-2-1-1/156026 "2008-12-19T13:17:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [December 19, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/textarea-clear-in-rjs-stopped-working-with-2-1-1/156026/1 "2008-12-19T13:17:59Z")

</div>

Hi - I have an RJS that says

page[“textarea\_id”].clear that works fine with rails 2.0.2 but is  
broken with 2.1.1 - I get an error message:

ActionView::TemplateError (undefined method `[]’ for  
#Enumerable::Enumerator:0x2b31d31cc598)

So, how do I clear a text\_area now? Also, is there a reference for  
page somewhere?

Thanks,  
Dino
