这是我在 jquery 中的表:-
var tbody = $('#tblCsvRecords tbody'),
props = ["ShipmentType", "SCAC", "ShipmentControlNumber", "ProvinceofLoading",
"ShipperName", "ConsigneeName"];
$.each(filedata, function (key, value) {
var tr = $('<tr>');
$.each(props, function (key, prop) {
$('<td>').html(value[prop]).appendTo(tr);
});
tbody.append(tr);
});
这是 jquery 中的验证-
$.each(globalfiledata, function (key, value) {
if (value.ShipmentType != ("Regular Bill" || "Section 321")) {
//show error sign and view error link as shown in image
}
});
html 表 -
<div id="tablediv" class="table-responsive">
<table id="tblCsvRecords" class="table table3-1 bg-white no-margin-bottom">
<thead>
<tr>
<th>Shipment Type </th>
<th>SCAC </th>
<th>Shipment Control Number </th>
<th>Port of Loading </th>
<th>Shipper Name </th>
<th>Consignee Name </th>
<th>Validated </th>
</tr>
</thead>
<tbody>
</tbody>
</table id>
</div>
我想在表的已验证列中显示弹出窗口的错误符号和查看错误链接。我怎样才能做到这一点? 表格的已验证列的图像
如果 Iserror 为真,我想在模式中显示错误消息 -“输入有效的货件类型”我应该怎么做?以下是工作更新的代码-