load Jquery content via ajax rails
===

I'm populating a list which i have set up with the jquery ui accordion.

Now what is the best way to load in content when i select on the particular div?

i'm loading this as _form.html.erb:

    <div id="accordion" >
    	<% @notes.each do |note| %>
    
    
    	<h5 id="<%=note.id %>"><a href="#"><%=note.name %></a> </h5>
    
    	<% end %>
    </div>


the form which gets loaded in my show.html.erb file is this one.



     <%= form_for @note do |f| %>
      <%= f.text_field :name %> 
       <%= f.text_area :content %>
      <%= f.label :label_tokens, "Labels" %>
      <%= f.text_field :label_tokens, "data-pre" => @note.labels.map(&:attributes).to_json%>
      <br>
      <%= f.submit %>
      <input type="reset" value="Reset form!">
    
    <% end %>

So basically instead of loading up a new page, i would like this form displayed inside my accordion div that is selected.
