I have this input:
<input type="text" name="email" size="40" class="wpcf7-form-control wpcf7-text form-control input-lg" id="email" aria-required="true" aria-invalid="false" required placeholder="E-mail (obligatoriu)">
I am using this script to validate it :
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.3/js/bootstrapValidator.min.js"> </script>
It works well but when I clear the input but it shows that is still valid. This is only a show problem cause it doesn't let me send the form if it's empty.
Here I have the validate rules :
email: {
validators: {
notEmpty: {
message: 'Adresa de email este un camp obligatoriu'
},
emailAddress: {
message: 'Adresa de email nu este corecta'
}
}
},
Hope this helps.