Button text on wrong answer


/ Published in: JavaScript
Save to your folder(s)

change the button text on wrong answer


Copy this code and paste it in your HTML
  1. $('#wrongAns').mouseup(function() {
  2. $(this).text("Try again!");
  3. setTimeout(function(){
  4. $("#wrongAns").text("South-Korea");
  5. }, 1000);
  6. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.