var selects = $("select");
selects.click(function(){
var tr = $(this).parent().parent(); //通过td里面的元素获得tr
var td_two = tr.children("td").eq(1);//使用tr的children(“td”) 方法获取所有的td,在通过eq(1) 拿第二个td
console.log(td_two.html());
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案