table寻找兄弟列的值

function showCover(videoidtemp,curRow){

// curRow为当前元素。寻找当前元素的父元素,寻找父元素中class为tdd的元素。.html() 是单元格td中的显示的内容
var fenlei=$(curRow).parent().siblings('.tdd').html() ;
$(".boxT").css("display","block");
}

<#if (videoExt.classification =="16")> <td class="tdd" align="center">现场</td> </#if>
<#if (videoExt.classification =="17")> <td class="tdd" align="center">小品</td> </#if>

<td align="center">
<a href="#" onclick="showCover(${video.videoId},this);" class="pn-opt">审核</a>
</td>

孔曰成仁,孟曰取义
原文地址:https://www.cnblogs.com/haorun/p/6083190.html