Skip to content Skip to sidebar Skip to footer

Iterate Table Column By ID Instead Of Index

Alright, so I've got a small issue on my WordPress site, that hopefully someone can help me with. As you will see, I am using a fair amount of JavaScript to style my site. The main

Solution 1:

For some reason my first answer was deleted, but this is the solution I've got working now if anyone else has the same question:

jQuery('#table_5 tbody tr').each(function (i, row) {
    var pct = jQuery(this).find(".column-pct_value").text();
    console.log(pct);

If anyone else has a better alternative, I'd love to hear it!


Post a Comment for "Iterate Table Column By ID Instead Of Index"