也许我太累了,但我真的不明白为什么这件事不起作用?我在这里有 jsbin:http: //jsbin.com/ariret/19/edit
谢谢你的时间!
<section class="">
<p>Hello there, this is your flight info.</p>
<div class="confirmation">
<h3>Hawaiian Vacation</h3>
<button class="btn">Flight details</button>
<div class="ticket">
<a href="#" class="view-boarding-pass">View Boarding Pass</a>
<img src="http://placekitten.com/g/100/100" alt=""/>
</div>
</div>
</section>
jQuery:
$('.confirmation').on('click', 'button', function() {
console.log('works');
$(this).find('.ticket').hide(); //why is this not working?
});