skip to Main Content

Can JavaScript adjust input field (HTML) text color (CSS) based on input value?

I have a piece of code that obtains 10 input values (integers and floats) from the user: var in1 = parseInt(document.getElementById("in1").value); var in2 = parseInt(document.getElementById("in2").value); var in3 = parseFloat(document.getElementById("in3").value); var in4 = parseFloat(document.getElementById("in4").value); var in5 = parseInt(document.getElementById("in5").value); var in6 =…

VIEW QUESTION
Back To Top
Search