关于标签选择器获取table中的<td>标签中的html值,以及<td>中<input type=‘text‘>中的value值的详解
目录
1.标签选择器获取table中的<td>标签中的html值
这是我自己最近做的项目的一段jsp代码,
<table id="Mytable" class="table table-hover table-bordered table-striped" style="margin-bottom: 0px;">
<tr>
<th>序号</th>
<th>设备名称</th>
<th>设备编号</th>
<th>设备类型编号</th>
<th>设备状态</th>
<th>设备是否被租用</th>
<th>设备数量</th>
<th>设备单价</th>
<th>设备备注</th>
<th>操作</th>
</tr>
<c:forEach var="equipment" items="${equipmentList }" varStatus="status" >
<tr>
<td>${status.index+1 }