# Can replace\_html change the value of an input text?

**URL:** <https://www.ruby-forum.com/t/can-replace-html-change-the-value-of-an-input-text/160080>\
**Category:** Rails\
**Created:** [February 11, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/can-replace-html-change-the-value-of-an-input-text/160080 "2009-02-11T16:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [February 11, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/can-replace-html-change-the-value-of-an-input-text/160080/1 "2009-02-11T16:46:59Z")

</div>

Hello,

I’m updating one

 area with one partial, using a page of .js.rjs,  
and the code:

page.replace\_html(“div\_list”, :partial =\> “list”, :object =\>  
@expedients)

Also, I would like to empty the field value that I use to send the Ajax  
request, but I can’t make it to work, maybe it’s not possible with  
page.replace …

seudo code:

page.replace\_html(“expedient\_reference”, :partial =\> “blank”,)

Basically I want to change the value of the id expedient\_reference:

Referencia

is this possible ?

thanks,

r.
