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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

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