I'm just trying to replace a link with some text, so I'm trying to use .after(), and then hide(). The link is hidden, but the replacement text does not appear.

Code:
var the_link = $(this);
$(the_link).after('Replacement Text');
$(the_link).hide();
What's wrong here? The examples I see online make this seem like it should work.