Need help to find particular column value in the data table.
Need help to find particular column value in the data table.
arulkg
Posts: 2Questions: 0Answers: 0
Hi,
I am new to JQuery, currently I am creating web application in MVC, in this I am developing one page called Master/Detail.
Question is My detail page should not allow deplication values for particular column.
example.
Employee Code, Employee Name. In this two columns that employee code should not be duplicate so How do I find and say to the user this employee code already exists. Currently I am using Data Tables 1.8
any help in this.
Regards
Arul
I am new to JQuery, currently I am creating web application in MVC, in this I am developing one page called Master/Detail.
Question is My detail page should not allow deplication values for particular column.
example.
Employee Code, Employee Name. In this two columns that employee code should not be duplicate so How do I find and say to the user this employee code already exists. Currently I am using Data Tables 1.8
any help in this.
Regards
Arul
This discussion has been closed.
Replies
I got solution for my problem, Please see below codes.
var nNodes = $('.tbl').dataTable().fnGetNodes();
alert(nNodes.length);
if (nNodes.length > 0) {
for (var i = 0; i< nNodes.length; i++) {
var dat = $('.tbl').dataTable().fnGetData(nNodes[i]);
if ($('#ManNo').val() == dat[0]) {
alert('This man number already exsts ' + dat[0]);
return false;
}
}
}
Regards
Arul.K