background:url('correct_field.png') no-repeat 100% 0;
background:url('incorrect_field.png') no-repeat 100% 0;
the CSS is not used until the script checks the field, this is one of the checks that is done in some fields
if (NOnumbershere.test(thevalue) == true)
document.getElementById("errors_console_1").innerHTML = ("No numbers are allowed in this field.<br>Only characters a-z in the field.<br>Please correct it!");
thefield.className="incorrect_field"; // here is my problem at the moment
basically the field is checked and when someone enters a number or numbers an error is displayed and the style of the field is changed so it shows the image in the CSS above and it works just fine.
does anyone know how I can manage to add that CSS class without messing up the script?
So, I did some research and found that doing className += should work, but I did that and it still does not work, any ideas?