RJS and changing an element's class

I have code in an rjs file similar to the following:

row = “row_575”
page[row][:class] = “row-odd”

I’m trying to change the class of the row, but this doesn’t appear to
work. What am i missing?

On Oct 16, 2006, at 1:27 PM, Bryan L. wrote:

I have code in an rjs file similar to the following:

row = “row_575”
page[row][:class] = “row-odd”

I’m trying to change the class of the row, but this doesn’t appear to
work. What am i missing?

page[row].add_class_name(“foo”)

– Ezra Z.
– Rails Architect
[email protected]
– Engine Y., Serious Rails Hosting
– (866) 518-YARD (9273)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs