I am having a tough time with this javascript code to change the background color of a text input if the input is empty.
Here is the code:
function c
Try this:
function checkFilled() { var inputVal = document.getElementById("subEmail"); if (inputVal == "") { inputVal.style.backgroundColor = "yellow"; } }