MVC 中如何点击
的一行获取此行某一列的值? <table class="table" width="100%" layouth="138">
<thead>
<tr>
<th>
状态
</th>
</tr>
</thead>
<tbody>
@foreach (var Storage in ViewBag.StorageList)
{
<tr onmousedown="showVaule()">
<td id="statusid">@Storage.STATUS
</td>
</tr>
}
</tbody>
</table>
==============================================
<script type="text/javascript">
function showTypeInfo() {
alert($("#statusid").val()); //没用呢?
}
</script>
...全文
用AI写文章