change button text on click w3schools
See online demo and code. Optionally set its style.color property.
change button text on click w3schools