【发布时间】:2014-06-16 15:50:44
【问题描述】:
我在将文本放入 a 并将其放入 Box 时遇到了一些麻烦,在这里你可以找到一个小例子。 这个想法是当用户单击“选择”时,它会将代码从内部
<td> @Html.DisplayFor(Mod => Item.Item.Custumer_code) <td/>
在带有客户代码 ID 的输入输入中。 这是代码:
<div class="col-sm-3">
<input class="form-control"
placeholder="Entre a custumer code"
id="Custumercode"
name="Custumercode"/>
</div>
<table class="table">
<thead>
<tr>
<th>Costumer Code</th>
<th>Select</th>
<th>Costumer Name</th>
<th>Email </th>
<th>Tel </th>
</tr>
</thead>
@foreach (var Item in Model)
{
<tbody>
<tr>
<td> @Html.DisplayFor(Mod => Item.Custumer_code) </td>
<td> @Html.DisplayFor(Mod => Item.custumer_name) </td>
<td> @Html.DisplayFor(Mod => Item.Email) </td>
<td> @Html.DisplayFor(Mod => Item.Tel) </td>
<td>
<button type="button" class="btn" onclick="myFunction()">
Select
</button>
</td>
</tr>
</tbody>
}
</table>`
【问题讨论】:
标签: c# jquery html asp.net-mvc-4