javascript change color of text input
snippet in javascript

javascript change color of text input

user1008

document.getElementById("yourInputID").style.color = 'the color of your choice';

change the color of text in javascript

user4147

 document.getElementById("myH2").style.color = "#ff0000";

document.getElementById("myP").style.color = "magenta";

document.getElementById("myDiv").style.color = "lightblue";