0

フィドル

 $(".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'));
        });

//rowIndex と colIndex を持つセルのクリック時にスパン ID を見つける必要があります。私を未定義にする

4

1 に答える 1

2

を取り外します.eq(rowIndex)

alert($('.csstextheader').find('td').eq(colIndex).find('span').attr('id'));
于 2012-10-25T06:50:19.890 に答える