I troubled with ajax processing.

Hi , all! I want to save the stars. but when I reload the browser, The date is initialized. I don’t know how to save the date. Please help me some advise. Thanks for reading my code.

$(document).ready(function(){
   $(".star").click(function(){
  // $("#star_9").click(function(){
  //   alert("test");
  // });

      $(this).append("<img width='25' height='25' src='/images/star.gif?1311854167' >");     
});

index.html.erb

      <div class="star">
        <%= image_tag("star.gif",:size => "25x25") %>
       

      </div>