Html – button text color not changing when I place the script inside another function
I want to change the text color of a button when I click on it using a function. so I made a function for it which does not work. code: function correct(x) { document.getElementById("x").style.color = "green"; } function wrong(y) {…