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

209
Views
I want to display specific text when the data get from table equal specific value?
  1. I want to display specific text when the data get from table equal specific value.

    example :- if (data[9] = x) { y = 'Text'}

  2. And I want to display it in the span id

    Id 01 : Text


$('.example').on('click', function() {
      $('#example').modal('show');

      $tr = $(this).closest('tr');

      var data = $tr.children("td").map(function() {
        return $(this).text();
      }).get();

      // console.log(data);

      $('#Id01').html($.trim(data['1']));
      $('#Id02').html($.trim(data['2']));
      $('#Id03').html($.trim(data['3']));
<p>Id 01 : <span id="Id01"></span></p>
<p>Id 02 : <span id="Id02"></span></p>
<p>Id 03 : <span id="Id03"></span></p>

about 4 years ago · Juan Pablo Isaza
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!