【发布时间】:2016-11-28 15:58:45
【问题描述】:
我有一个这样的多选下拉列表:
<select id="ddMonths" multiple="multiple">
<option value="oneM" selected="selected"> OneMonth</option>
<option value="twoM" selected="selected">TwoMonths</option>
<option value="threM" selected="selected">ThreMonths</option>
<option value="fourM" selected="selected">FourMonths</option>
<option value="fiveM" selected="selected">FiveMonths</option>
<option value="SixM" selected="selected">SixMonths</option>
</select>
和javascript:
$(document).ready(function () {
$('#ddMonths').multiselect();
});
我有一个这样的 html 表:
<table>
<thead>
<tr>
<th >Something</th>
<th>Something1</th>
<th>Something2 </th>
<th >Something3 </th>
<th>Something4 </th>
</tr>
</thead>
<tbody id="trBoth">
<asp:Literal ID="allSomething" runat="server"></asp:Literal>
</tbody>
</table>
我使用后面代码中的文字填充表格。 我想使用多选下拉列表中的选定项目来控制表的值是否可能???如何从后面的代码中访问选定的项目?我正在使用 asp.net C#。我需要你的帮助。
【问题讨论】:
标签: javascript c# asp.net