Tengo estos datos en una tabla:
Red Green Blue Yellow Pink OrangeQuiero mostrar una alerta como esta:
alert($(this).closest('tr').find("Orange").text());Pero no funciona.
establecer un campo de identificación para cada tr como
<tr id="1"> <td>Red</td> <td>Green</td> <td>Blue</td> </tr> <tr id="2"> <td>Yellow</td> <td>Pink</td> <td>Orange</td> </tr>luego alert($(this).closest('tr').attr('id'));