I have the following code:
<% @groups.each do |group| %>
<tr>
<td id="groupid"><%= group.id %></td>
<td><a href="#dialog" name="modal"><%= group.title %></a></td>
</tr>
<% end %>
<div id="boxes">
<div id="dialog" class="window">
<strong><%= @groups.find(3).title %></strong> |
<a href="#"class="close"/>Close it</a>
</div>
</div>
When I click on the <%= group.title %> link in the browser I want to get the value stored in <td id="groupid"> and pass it on at <%= @group.find(3).title %> where 3 is...so instead of 3 i would have the value stored in <td id="groupid">
How do I achieve this?
group.findthere.