This will work:
function chngcolor() {
var x = document.getElementById('status');
if (x.value == 'Accept') {
x.style.color = '#00FF00';
}
}
getElementById
returns single DOMElement, so you don't need [0]
. You also misspelled getElemetById
.