/ Published in: JavaScript
change the button text on wrong answer
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#wrongAns').mouseup(function() { $(this).text("Try again!"); setTimeout(function(){ $("#wrongAns").text("South-Korea"); }, 1000); });