I am new in ASP.Net MVC and JQuery.
I want to get row detail including selected dropdownlist value placed in one column.I want to store value in one object like customer = {customerId :'',customerName:''}
so How can I do this using JQuery.
here is my table structure.
<table style="table-layout: fixed;" class="data-display-table" id="tblFleet">
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
<input type="checkbox" id="[email protected]" />
</td>
<td>
@item.CustomerId
</td>
<td>
@item.CustomerName
</td>
<td>
@item.ContactNo
</td>
<td>
@{string ddlId = "ddl" + item.CustomerId}
@Html.DropDownList(ddlId, (IEnumerable<SelectListItem>)ViewBag.MessageTemplateList, new { @style = "width:140px" })
</td>
</tr>
}
</tbody>
</table>