<table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Due Date</th> <th>Department</th> <th>Priority</th> <th> Action </th> </tr> </thead> <tbody> @if (@Model != null) { foreach (var item in Model) { <tr> <td> @item.Name </td> <td>@item.DueDate</td> <td>@item.Department</td> <td>@ConfigurationHelper.GetItemDescription(BOType, "Priority", item.Priority.ToString()) </td> <td> <div class="hidden-sm hidden-xs action-buttons"> <span> <a class="green" href="@Url.Action("Edit", "Submission", new { id = @item.SubmissionId })"> <i class="ace-icon fa fa-pencil bigger-130"></i> </a> <a class="green" href="@Url.Action("Review", "Submission", new { id = @item.SubmissionId })"> <i class="ace-icon fa fa-eye bigger-130 blue"></i> </a> </span> </div> </td> </tr> } } </tbody> </table>
... <table><tbody><tr class="showInfo"> .... </tr></tbody></table>
$(".showInfo").dblclick(function(){ //Read nearest td value for your Name,Due Date etc. //set these to your label on pop up. //Open your pop with all the details });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)