Ruby on Rails: + AJAX: How do I set the value of a field -
there
page. Code> But is such a place where I can put a value in the text field?
I think that you have RJS and prototype < / Em>, for example, if your textfield
is in the "foo" value in the id, then something similar can be done:
page & lt ; & Lt; % {Var input = $ ('foo'); Input.writeAttribute (with 'value', 'talk to change it'); }
Updates the value
attribute of the input
element.
Comments
Post a Comment