v0.5.3 is released on 2014.11.05!
Options
| Option | HTML attribute | Type | Description |
|---|---|---|---|
message |
data-bv-ismn-message |
String | The error message |
When setting options via HTML attributes, remember to enable the validator by setting data-bv-ismn="true".
Example
| ISMN | Result |
|---|---|
| M230671187 | |
| 979-0-0601-1561-5 | |
| 979 0 3452 4680 5 | |
| 9790060115615 | |
| 9790060115614 |
<form id="ismnForm" class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">ISMN</label>
<div class="col-sm-5">
<input type="text" class="form-control" name="ismn" />
</div>
</div>
</form>$(document).ready(function() {
$('#ismnForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
ismn: {
validators: {
ismn: {
message: 'The value is not valid ISMN'
}
}
}
}
});
});Related validators
The following validators might be useful to you: