I have a really basic if else code that returns either "CORRECT" or "INCORRECT"
How do I format this text so that "CORRECT" appears GREEN & "INCORRECT" appears RED
???
<html>
<script language="javascript">
function QA1()
{
var ANSWER = document.getElementById("ANSWER").value;
var RESULT;
if (ANSWER == '2') {
RESULT = "CORRECT";
} else {
RESULT = "INCORRECT";
}
document.getElementById("RESULT1").innerHTML = RESULT;
}
</script>
<body>
<form method="post">
<p><input type="text" length="3" id="ANSWER">
<input type="button" value="Enter" onclick="QA1()"></p>
</form>
<p id="RESULT1"></p>
</body>
</html>