Validate a MEID (mobile equipment identifier)
Option | HTML attribute | Type | Description |
---|---|---|---|
message |
data-bv-meid-message |
String | The error message |
<form id="meidForm" class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label">MEID</label>
<div class="col-lg-5">
<input type="text" class="form-control" name="meid" />
</div>
</div>
</form>
$(document).ready(function() {
$('#meidForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
meid: {
validators: {
meid: {
message: 'The value is not valid MEID'
}
}
}
}
});
});
The following validators might be useful to you: