When I use the below, I cannot get the jQuery this to hide the element.
this
$(\'.purplePanda\').click(function(e){ this.hide(); });
Replace
this.hide();
with
$(this).hide();
Thus your function should be like
$('.purplePanda').click(function(e){ $(this).hide(); });
See the official documentation here