Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery span id未定义_Jquery - Fatal编程技术网

Jquery 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();

//我必须在单击分别具有rowIndex和colIndex的单元格时找到span id。 使我未定义

删除
.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'));