Jquery span id未定义
//我必须在单击分别具有rowIndex和colIndex的单元格时找到span id。 使我未定义删除Jquery span id未定义,jquery,Jquery,//我必须在单击分别具有rowIndex和colIndex的单元格时找到span id。 使我未定义删除.eq(行索引) 我想选择页眉跨度id@nathan,如果您对标签有任何意见,请务必提出,但请立即提出;不要自己编辑标签。@ben,很抱歉,我不知道这种东西通常会放在哪里。 $(".csstablelisttd").live('mousedown', function (e) { var rowIndex = $(this).closest("tr").index();
.eq(行索引)
我想选择页眉跨度id@nathan,如果您对标签有任何意见,请务必提出,但请立即提出;不要自己编辑标签。@ben,很抱歉,我不知道这种东西通常会放在哪里。
$(".csstablelisttd").live('mousedown', function (e)
{ var rowIndex = $(this).closest("tr").index();
var colIndex = $(e.target).closest('td').index();
alert($('.csstextheader').eq(rowIndex).find('td').eq(colIndex).find('span').attr('id'));
});
alert($('.csstextheader').find('td').eq(colIndex).find('span').attr('id'));