Accessing this.parentNode in RJS?

Does anyone know how I can do this Javascript command with RJS?

this.parentNode.className = ‘selsec’;

This is what my AJAX call looks like in my view (which will invoke
load_chart.rjs)

<%= link_to_remote “Ajax Magic” , :url => {:controller =>
“chart”, :action => “load_chart” } %>

How exactly would access “this” in an RJS template?

Thanks!
chirag

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