1. If errorplaciner, errorLabelContainer, and wrapper are set, errorPlacement does not work.
Copy codeThe Code is as follows:
...
$ (Document). ready (function (){
$ ("# Myform"). validate ({
ErrorContainer: "# messageBox1, # messageBox2 ",
ErrorLabelContainer: "# messageBox1 ul ",
Wrapper: "li ",
Debug: true,
...
ErrorContainer: You can configure multiple containers. Here, the messageBox2 element is not packaged, but this element is displayed and hidden when an error occurs.
ErrorLabelContainer: Indicates the container that displays the error message. The container is hidden or displayed based on the verification result.
Wrapper: Name of the outer tag with the error message displayed.
ErrorElement: Specifies the html Tag name for displaying verification error information (label by default)
For example, if errorElement is set to span
<SPAN class = checked htmlFor = "cusername" generated = "true"> </SPAN>