Hi All,
Is there a quality way to update the text inside a "link_to_remote" and leave the link functional? Basically I have two links:
<%= link_to_remote "(#{building.charts.size} Charts)",{:url => {:action => "update_chart_matrix", :chartable_type => "building",:chartable_id => building.id, :title => building.name},
:update => 'chart-matrix',
}
%>
...and...
<%= link_to_remote "Add Chart",{:url => {:action => "add_chart_for_chartable", :chartable_type => "building",:chartable_id => building.id},
:update => 'other_link', #really not sure about this part as I only want to update the Chart Count in the other link
}
%>
It would be easy enough to simply replace the HTML inside the link, but I don't want to "break" its functionality. Any ideas?
Thanks.