Accordion Help

Accordion Help


Hello,
I am using the Accordion widget and would like to put some extra links
in to the accordion to perform various functions. Given the structure:
Parent1
Child1
Child2
Child3
I would like to be able to put a set of links next to "ParentX" and
"ChildX" so I have:
Parent1 Link1 Link2
Child1 Link1 Link2
Child2 Link1 Link2
Child3 Link1 Link2
However, if I add in an anchor tag after ParentX or ChildX, the
accordion no longer works properly. Any ideas on how I can do this?
Thanks.
Here's my code (in Rails). The link after which I'd like the other
links to appear is the <a href"#"... one.
<script>
    $(document).ready(function(){
        $("#display_categories").accordion({
         alwaysOpen: false,
         active: false
        })
    });
</script>
<form name="category_form" action="/admin/update_display_category"
method="POST">
    <ul id="display_categories" class="display_categories">
        <% @display_categories.keys.sort.each do |parent_category| %>
             <li>
                 <a href="#" class="display_parent_category"><%= CGI.unescape
parent_category %></a>
                      <ul class="display_child_categories">
                     <% @display_categories[parent_category].each do |c| %>
                 <li><%= link_to CGI.unescape(c.name), :action => 'TBD' -%></
li>
                     <% end %>
                 </ul>
             </li>
        <% end %>
    </ul>
</form>