Let’s first use firebug to view the html error message generated by JS in the previous example:
From the picture, we find that the error message is placed in a label tag, and there is a class style error. As long as the css style is set for the error in the
label tag under the signupform, the display result should be modified. Now, the added css code is as follows:
Display the results when running:
Source code download