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

Popular posts from this blog

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

gtk - Python Window Resize -

c# - read full xml file data over tcp -