I develop an Asp Mvc web application, in one of the views I have a table with the following structure:
<table id="grupoActividades" class="ctrlTable table table-striped table-bordered table-hover" cellspacing="0">
<thead class="ColorHeaderTable">
<tr>
<th style="width: 80%">
@Html.DisplayNameFor(model => model.GrupoActividadBaseViewModels.FirstOrDefault().Descripcion)
</th>
<th style="width: 20%">
Acciones
</th>
</tr>
</thead>
<tfoot class="ColorHeaderTable">
<tr>
<th style="width: 100%">
@Html.DisplayNameFor(model => model.GrupoActividadBaseViewModels.FirstOrDefault().Descripcion)
</th>
<th style="width: 20%">
Acciones
</th>
</tr>
</tfoot>
<tbody class="celda">
@foreach (var item in Model.GrupoActividadBaseViewModels)
{
<tr>
<td style="width: 100%">
@Html.DisplayFor(model => item.Descripcion)
</td>
<td class="celda" style="width: 20%">
<a style='color: #004881' href='/actividadbase/index/@item.GrupoActividadBaseId' id='[email protected]' title='Administrar Actividades Base'>
<span class='fa fa-list-ol fa-lg'> </span>
</a>
<b style='color: #004881'> | </b>
<a data-modal='' data-toggle='modal' data-target='#myModal' style='color: #004881' href='/grupoactividadbase/edit/@item.GrupoActividadBaseId' id='[email protected]' title='Editar información de la Etapa Base'>
<span class='fa fa-pencil fa-lg'> </span>
</a>
</td>
</tr>
}
</tbody>
</table>
Within the Actions column I have some links to perform certain actions, I want you to click on the link id = 'detail - to get the text that belongs to the column Description of that same row to show it in a label.