O'Reilly logo
  • Ray Megal thinks this is interesting:

$(function() { 'use strict'; $('#createdGames').on('click', '.delete', function() { var $this = $(this); $.ajax($this.attr('href'), { method: 'delete' }).done(function() { $this.closest('.game').remove(); }); event.preventDefault(); }); });

From

Cover of Learning Node.js for .NET Developers

Note

Trying to mentally parse this with no prior JQuery experience and little Javascript knowledge borders on magical for me right now.