我得到的列表如下:
<table border=1 align="center" width="90%" id="skilltableId">
<thead>
<tr>
<th>Skill</th>
<th>Levels</th>
</tr>
</thead>
<tbody class="agentSkills" id="agentSkills">
<core:forEach items="${personForm.skillList}" var="skill" varStatus="status">
<tr id='${skill.skillDbid}' class='trClass' onclick="selectSkill(this.id)">
<td>${skill.skillName}
<form:hidden path="skillList[${status.index}].skillName" id="hiddenSkillname"/>
</td>
<form:hidden path="skillList[${status.index}].skillDbid" id="hiddenSkilldbid"/>
<td colspan="2">${skill.skillLevel}
<form:hidden path="skillList[${status.index}].skillLevel" id="hiddenSkillLevel"/>
</td>
</tr>
</core:forEach>
</tbody>
</table>
<input type="button" id="delBtn">
样本输出:
Skill Levels
English 5
Hindi 4
Telugu 8
数据将按上述格式以表格形式列出。如果我单击“tr”,它应该突出显示该行,然后在单击按钮 (id="delBtn") 后,应该从列表中删除特定数据。我怎样才能做到这一点?