title: Rails, menu using ul li cannot open two records simultaneously
body: <p>I have following html and rails code:</p>
  
  <pre><code>&lt;div class="menu"&gt; 
      &lt;%
        # 0 - owner
        # 1 - admin
        # 2 - member
      members.each do |mem|
          #if mem.num != 0 and status !=2
              if mem.num == 1 then role = "admin" end
              if mem.num == 2 then role = "member" end
  
      %&gt;
  
      &lt;/br&gt;
  
  
          &lt;ul id = "#{mem.str}"&gt;                                                           
              &lt;li&gt; &lt;%= link_to mem.str%&gt;
                  &lt;ul&gt; 
                      &lt;li&gt;&lt;td&gt; &lt;%= check_box_tag "members[]", mem.str %&gt; Rights: &lt;%= select_tag "rights[#{mem.str}]", options_for_select(["admin", "member"],role),  :class =&gt; "table_column_width" %&gt;&lt;/p&gt;&lt;/td&gt;&lt;/li&gt;             
                  &lt;/ul&gt;       
              &lt;/li&gt;  
          &lt;/ul&gt;
      &lt;br/&gt;
      &lt;%end%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Menu works pretty fine but if I have more then two members I cannot open a menu for the first member and for the second member simultaneously so that I can see the rights of the first and of the second. As soon as I klick on another member, menu of the first member closes and menu for another opens. I want to have menus opened for all members if I clicked to open it.</p>