我有一個在懸停時具有背景色的表格行。當用戶在背景顏色區域內單擊時,它應該抓住行內錨標記的鏈接並將用戶帶到那裏..我該怎麼做?使表格行可點擊
<tr id="ClickableRow">
<td>
<a href="http://somesite.com">Go Here</a>
<p> To find about all the interestng animals found in this tourist attractions including
zebra, giraffe.....
....
</p>
</td>
</tr>
如何獲取錨定標籤href值?
$('tr #ClickableRow').click(function() {
window.location.href=Anchor tag's href value
});