JS同行绑定事件

<td><a class="blue" href="javascript:void(0);" class="blue" style="cursor: pointer;" id="qxButton">转让</a></td>
<script>
    $( ".blue" ).click(function() {
        var releaseMonth = $(this).parent().siblings().eq(2).html();
        console.log(releaseMonth);
    });
</script>

 

点击"转让"标签,可以获取其同行的任意列数据。





原文地址:https://www.cnblogs.com/lindaZ/p/6001033.html