I am having some trouble with styling text validation, you can take a look at what I am currently working on here: http://jsfiddle.net/xepDX/ The problem I am having is that by default the color shouldn't be green.