E
E
Eugene Burmakin2014-03-31 10:00:21
JavaScript
Eugene Burmakin, 2014-03-31 10:00:21

How to update a div in Rails using ajax?

Essence: there is a page #1 with content (one line). And there is page #2 with a button (link_to). How can I make it so that on each click on the button on page #2, the content of page #1 is substituted in the div located on it?

Please, if you know, give a code example to make it clear.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question