An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @akhter hussain,
You can use jquery selectors:
$('#DataInsert tr:contains("' + $("#Barcode_Bale").val() + '")').length
$('#btnInsert').add(function () {
if ($('#DataInsert tr:contains("' + $("#Barcode_Bale").val() + '")').length > 0) {
alert("found duplicate values");
}
else {
var tbody = $('#DataInsert tbody');
var tr = $('<tr></tr>');
tr.append('<td>' + $("##Barcode_Bale").val() + '</td>');
tr.append('<td>' + $('#Bale_Qty').val() + '</td>');
tr.append('<td>' + $('#select2-3').text() + '</td>');
tr.append('<td>' + $('#select2-3').val() + '</td>');
tr.append('<td><input class="del" type="button" value="Delete" /></td>')
tbody.append(tr);
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.