Not sure what I'm doing wrong with .live()
$(function(){
var wrapper = $('#trailer_wrapper');
var button = $('h2 a');
button.click(function() {
wrapper.fadeIn(2000);
button.addClass('selected');
button.text('close ×');
return false;
});
$('h2 a.selected').live('click', function() {
wrapper.fadeOut(2000);
$(this).removeClass('selected');
button.text('Watch Trailer »');
return false;
});
});