CSS format in jQuery Validate

I want to view the jQuery validation text response in a new line, not in a line with input elements.

How can i achieve this?

code: http://jsfiddle.net/5gVHx/2/

Press NEXT, you will see the verification response line in the same line as the input, I want it in a new line

+4
source share
3 answers

Just add display: block; to the label.error selector.

 label.error { float: none; color: red; padding-left: .5em; vertical-align: top; display: block; } 

http://jsfiddle.net/5gVHx/5/

+6
source

add the following parameter to your validation options

 errorLabelContainer: "#errors" 

where #errors is the selector of the element in which you want to show errors

+3
source

just add a break to your statement

 provincia: "<br />Por favor selecciona una provincia" 

will move to the next line.

+1
source

Source: https://habr.com/ru/post/1380759/


All Articles