我在 HTML 中有一个复选框:
<td class="myClass">
Delete<br><input type="checkbox" id="deleteCheck" class="delete" name="delete" value="">
</td>
我正在尝试使用 jQuery 以编程方式设置其值,但它没有设置值:
prot.find("#delete").attr("value", "12345");//here prot is reference to table row
我究竟做错了什么?