@foreach (System.Data.DataRow row in DataSet.Tables[0].Rows) { @foreach (System.Data.DataColumn column in DataSet.Tables[0].Columns) { @row[column] } <div class="ddlPanel"> None @foreach (var item in ViewBag.DropdownOptions) // viewbag is dataset { @item.Text } </div>
function Save() { var newDoorListForAdd = new Array(); var table = document.getElementById("newTable"); var tableLength = table.rows.length; for (var i = 0; i < tableLength - 1; i++) { var trial = $("#ddlSettingName option:selected").text(); alert(trial); } }
$("#ddlSettingName option:selected")
ddlSettingName
getElementById
class="--js-ddl-setting-name"
$(".--js-ddl-setting-name option:selected", table.rows[i])
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)