jQuery().ready(function() { $("#links a").click(function() { $(this).hide(); }); });