Q:

Ajax and voting

I have a parent class Car and the /cars/show page lists all of the reviews associated with it. The reviews can be voted on. I am having some difficulty getting the :votes_count to update by JavaScript.  
/votes/create.js.erb
$("#votes").html("<%= review.votes_count %>")  // this does not work

/cars/show
<% @car.reviews.each do |review| %>
  <p id='votes'><%= pluralize(review.votes_count, 'vote') %></p>

  <% if current_user  %>
    <%= form_for(@vote, :remote => true) do |f| %>
      <%= f.hidden_field "review_id", :value => review.id %>
      <%= f.hidden_field "user_id",   :value => current_user.id %>
      <%= f.submit "vote" %>
    <% end %>
  <% end %>

  <br />
  <%= review.content %>
<% end %>

A:

create.js.erb
    <% @car.reviews.each do |review| %>
    $("#review_<%= review.id %>").html("<%= pluralize(review.votes_count, 'vote') %>");
    <% end %>

