Answers for "how to get td from tr in jquery"

1

jquery get td value

$(".item-model-number .value").each(function() {
  var value = $(this).text();
  console.log(value);
})

/* <table>
    <tr class="item-model-number">
      <td class="label">Item model number</td>
      <td class="value">GL552VW-CN426T</td>
    </tr>
  </table> */
Posted by: Guest on March-10-2021
1

jquery grab table row

$('.itemTable').eq(2);
//this will grab the 3rd row of the table with the class itemTable
Posted by: Guest on March-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language