Created
September 17, 2013 19:43
-
-
Save rruhlen/6599492 to your computer and use it in GitHub Desktop.
jQuery to change the 'Thumbs up text', 'Thumbs down text', and 'Thank you text' to what you want it to be.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(function(){ | |
$("#rate_article div:nth-child(1) a").click(function(){ | |
$("#rate_article").css("visibility", "hidden"); | |
window.setTimeout(showHello, 1000); | |
}).next().text("Thumbs Up text"); | |
$("#rate_article div:nth-child(2) a").click(function(){ | |
$("#rate_article").css("visibility", "hidden"); | |
window.setTimeout(showHello, 1000); | |
}).next().text("Thumbs Down text"); | |
}); | |
function showHello(){ | |
$("#rate_article").text("Thank you text"); | |
$("#rate_article").css("visibility", "visible"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment