나는 이와 같은 데이터가있는 테이블이 있습니다JQuery와, 부모 요소의 onclick =에서는 window.location을 방지
<table>
<tr onclick="window.location='download.php?id=1'">
<td>Program 1<br/>Short Description 1 (<a onclick="$.popup.show('Install Instructions', 'Instructions pulled from DB here')">Instructions</a>)</td>
<td>Added by user and date/time here<td>
<td>Filesize here<td>
<td><a href="edit.php?id=1">Edit</a> - <a href="delete.php?id=1">Delete</a><td>
</tr>
(repeat TRs for more programs pulled from DB)
</table>
제가하는 데 문제는 당신이 (지침) 링크를 클릭하면, 그것은해야 지시 사항이 표시된 창을 팝업하십시오. 그것은 그것을하지만 TR의 onclick도 발생시킵니다. 그래서 나는 두번째 분할을위한 팝업을 얻는다. 그리고 download.php로 간다.
TR의 onclick 발사를 막을 수있는 방법이 있습니까? 가급적 jquery를 사용하여,하지만 난 일반 자바 스크립트 솔루션을 상관하지 않습니다.
나는 16 분 동안 계속 놀랐다. – cgp
감사합니다. 이것은 완벽하게 작동합니다. – Samutz