javascript change color of text input

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

Also in JavaScript: