With jQuery, I\'m trying to replace the text, including the span, inside these links on hover. Then when the user hover\'s off, the original text is displayed again.
You'd need to store it in a variable in order to set it back to what it was, try:
var text; $(".btn").hover(function () { text = $(this).text(); $(this).text("I'm replaced!"); }, function () { $(this).text(text); });