jQuery - Can't hide parent
问题 I've seemed to stumble upon a problem with a very simple task. I'm trying to hide a parent div when the child is clicked. Here is my HTML; <div class="wave-wrap"><div class="wave">click me</div></div> <div class="wave-wrap"><div class="wave">click me</div></div> <div class="wave-wrap"><div class="wave">click me</div></div> Here is my jQuery; $('.wave').click(function() { alert($(this).parent().html()); $(this).parent().hide('slow'); }); The alert seems to indicate I have the correct selector,