Reputation: 47126
How can I retrieve HTML content using Prototype? Or how can I fetch HTML content using RJS?
Upvotes: 0
Views: 4235
Reputation: 1
As seen on the documentation of Prototype. Use the update() method. http://prototypejs.org/doc/latest/dom/Element/update/
$('you_element').update('some fruits here');
Upvotes: 0
Reputation: 6857
$('fruit').innerHTML
will give you the inner-html of an element with id fruit.
Access innerHTML through rjs like this: page["fruit"]["innerHTML"]
The above code will translate into: $("fruit").innerHTML;
Upvotes: 2