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