我試圖隱藏「箭頭」點擊「thead」但它不工作。 jquerys的「孩子」不能在桌子上工作嗎?點擊隱藏子元素
HTML
<thead class="thead">
<tr>
<th>
<div class="arrow_o"></div>
</th>
</tr>
</thead>
JS
$(document).ready(function() {
$('.thead').click(function() {
$(this).children('.arrow_o').hide();
});
});
如果您在使用特定的jQuery方法時遇到問題,那麼最好的地方就是[該方法的doco](http://api.jquery.com/children/)... – nnnnnn