Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Created September 17, 2013 19:43
Show Gist options
  • Save rruhlen/6599492 to your computer and use it in GitHub Desktop.
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.
<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