I have the following code.
<div class="table ">
@grid.GetHtml(tableStyle: "table highlight hoverable"
, columns: new[] {
grid.Column("Persona"),
grid.Column("Calificacion"),
grid.Column("ente",header:"Ente Calificador"),
grid.Column("Tareas"),
grid.Column("Descri", header:"Descripción"),
grid.Column("Fecha",
header: "Fecha de Vencimiento",
format: p=>p.Fecha.ToShortDateString()),
grid.Column("Url",header:"Adjunto",format:@<text><a title="Adjunto" href="~/doc/@item.Url#toolbar=0" target="_blank"><i class="material-icons right">library_books</i></a></text>)
})
</div>
and I want to pass via javascript the value of href in the link when I click with the mouse on it. to a modal that I detail below. in the src attribute of the embed tag. taking into account that the webgrid generates a table with different records and different links.
<div id="modal1" class="modal">
<div class="modal-content">
<h4>Calificacion</h4>
<embed src="" />
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Agree</a>
</div>
</div>
How could I do this.