잘 작동하는 전체 테이블 행을 선택하려면 다음 javascript를 사용하고 있습니다.전체 테이블 행 위로 가기 팝업 선택
<script type="text/javascript">
$(function()
{
$('#link-table td:first-child').hide();
$('#link-table tr').hover(function()
{
$(this).toggleClass('Highlight');
});
$('#link-table tr').click(function()
{
location.href = $(this).find('td a').attr('href');
});
});
지금 내가 Top up Popop에서 선택한 행의 링크를 열려는하지만, href
을 조정하는 것은 작동하지 않습니다.
내가 생각하기에, 나는 location.href = $(this).find('td a').attr('href');
에서 뭔가를 조정해야한다고 생각하지만 어떻게해야할지 모르겠다. .
를 해결할 것입니다; –
location.href = $ (this) .find ('td> a'). attr ('href'); 변경되지는 않지만 팝업이 아닌 새 페이지에서 열립니다. – user3733945