DEV Community

Manikandan P
Manikandan P

Posted on • Edited on

2

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!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay