Can replace_html change the value of an input text?


#1

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.