发布网友 发布时间:2022-04-24 03:25
共1个回答
热心网友 时间:2022-04-23 06:24
<script type="text/javascript">
$(document).ready(function () {
$(".new_link^").click(function () {
var item1 = $(this).subling("td:eq(1)").text();
var item2 = $(this).subling("td:eq(2)").text();
$("#Myodal2").modal();
$("#MyModal2 .modal-body#txtAttachCategory.").text() = item1;
$("#MyModal2 .modal-body#txtAttachName.").text() = item2;
});
});
</script>
这样试试