I am using Ruby on Rails 3 and I am migrating from jQuery to Prototype but I am a newbie with the first JavaScript framework so I have some trouble. I would like to write the jQuery version of the following Prototype code:
page.select("#test_id").each do |element|
element.replace( "Test text )
end
How can I do? What is the code?
or