I need to update a series of html tags with the same content.

I've tried running the following in my rjs file:

page.select(".some_class").each do |item|
  item.replace_html("Some Content")
end

But it won't work.

However, when I run:

page.select(".some_class").each do |item|
  item.hide
end

it does.

I know part of the problem is that replace_html needs the element id.
But how, in RJS, would I do that?

Thanks
Will
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to