DEV Community

Manikandan P
Manikandan P

Posted on • Edited on

Get Column Value from DataTable using JQuery

let consOrderId='';
$("#portalDataTable tbody tr").each(function () {
var row = $(this);
var cols=row.find("td:eq(2)").html()
// if(row.cells[3].innerHTML!='consPayuId')
// consOrderId=(row.cells[3].innerHTML)
consOrderId=cols
});
console.log(consOrderId,"consOrderId");

Top comments (1)

Collapse
 
valvonvorn profile image
val von vorn

finally someone posted this!