ruby on rails - RoR rjs assign prompt value to variable -
How can I specify RJS prompt value for a variable
page & lt; & Lt; "Prompt ('Enter new first name:');"
When I call in an alert
Add your assignment to your Javascript statement Try:
Page & lt; & Lt; "Var response = sign ('enter new first name:');"
You should be able to reach the value of the response
in your client-side JavaScript.
Comments
Post a Comment