我需要幫助(我相信)非常簡單的選擇器。這是HTML:jquery - 從第二個標籤中選擇文本
<a href="http://localhost/index.php?action=profile;u=3" target="_blank">
<img src="http://localhost/index.php?action=dlattach;attach=44;type=avatar" alt="" style="max-width: 16px; max-height: 16px; vertical-align: middle;">
</a>
<a href="http://localhost/index.php?action=profile;u=3" target="_blank" style="color:#8c121a">profilename</a>
我在做什麼是捕捉到的IMG標籤點擊,然後我想從二號標籤的「PROFILENAME」的文字。
感謝您的幫助!
'父()。下一個()。文本()' – mplungjan
就像一個魅力。謝謝。 – saturnusringar