Help with Javascript for changing form field to white when text is entered
I am having trouble with my script. I can get it to change to white in the form field when I enter text as I wanted, but I can't get it to change back to transparent if no text is there or deleted. I think I need an if/then statement but I can't seem to get it worded correctly.
Any help would be greatly appreciated.
Here is what I have so far, which works if I put it in "custom", or o"n focus":
// custom keystroke action;
FillHighlight(event.target.name, color.white);
Thank you!
