text define under <swap> tag should change the text color on button click using html code example
Example: css change the button text value
document.getElementById("myButton").innerHTML="new button text";
document.getElementById("myButton").innerHTML="new button text";