I've got the parent categories displaying like this
<table>
<% @main_categories.each do |category| %>
<tr>
<td><div id="category_list"><%= check_box_tag "event_category_id[]", category.id %> <%= category.name %></div></td>
</tr>
<% end %>
</table>
In my controller,
@main_categories = Category.find(:all, :conditions => ['parent_id = ?', '1'], :order => "name")
I've been trying to figure out how to use remote_function to get the child categories to display :onclick, but I just don't seem to be able to get this. If anyone understands how Ajax in this instance would work and could offer some guidance, I'd really appreciate it. Thanks.