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

Try REST API Generation for MS SQL Server.

DreamFactory generates live REST APIs from database schemas with standardized endpoints for tables, views, and procedures in OpenAPI format. We support on-prem deployment with firewall security and include RBAC for secure, granular security controls.

See more!

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay