I'm using the Jquey Validation plugin and I'm trying to leave the error mark in the input as in the image I'm attaching, tried some alternatives and the result was not what I expected, what I have:
$("#frmLaudo").validate({ // Regras rules: { ID: { required:true, }, Cooperante: { required:true }, Propriedade: { required:true }, UF: { required:true }, Municipio: { required:true } }, // Messages for form validation messages: { ID: { required: 'Por favor informe o ID' }, Cooperante: { required: 'Por favor informe o nome' }, Propriedade: { required: 'Por favor informe a propriedade' }, UF: { required: 'Por favor informe a UF' }, Municipio: { required: 'Por favor informe o Municipio' } }, ...
The css I tried would leave the background in red, but it's not what I need, see:
label.error{ display: none!important; } .error{ background-color: red; }
What I really need is what you see in this image:
Version:
jQuery Validation Plugin - v1.11.0 - 2/4/2013