Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
Fetch data from another column to make if statement, and add some data in another column using columndefs in jquery

[here my table looks like] 1how can I do in columns like this if the column is equal to 'MIA up MTD', and I can add some data in the entire row of 'MIA up to MTD' start column MIA 0 until column MIA 5... below I attach some picture

"columnDefs": [

                    {
                        var accPaidPercentColumn = [1,2];
                        "targets": accPaidPercentColumn,
                        "render": function(data, type, row, meta) {
                               

                                if (data == 'MIA up MTD') {

                                    if (meta == 2) {
                                        var percentage = data + '<div class="progress"><div class="progress-bar""></div></div>';
                                        return percentage;
                                    }
                                    

                                }

                                else { 
        
                                   var percentage = data    + '';
                                   return percentage;

                                }

                        }
                    }
                ]
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!