<form id="eanForm" class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label">EAN</label>
<div class="col-lg-5">
<input type="text" class="form-control" name="ean" />
</div>
</div>
</form>
<script>
$(document).ready(function() {
$('#eanForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
ean: {
validators: {
ean: {
message: 'The value is not valid EAN'
}
}
}
}
});
});
</script>
Comments
If you want to report a bug, please submit the issue on Github. Do NOT post the issue here.
For a general question or feedback, use the form below.