Forum: Ruby on Rails Can replace_html change the value of an input text?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mongeta 9. (Guest)
on 2009-02-11 17:46
Hello,


I'm updating one <div> 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 <input id="expedient_reference" name="expedient[reference]"
size="30" type="text" /><input name="commit" type="submit"
value="Añadir" />

is this possible ?

thanks,

r.
This topic is locked and can not be replied to.