Validate an ISIN (International Securities Identification Number).
Option | HTML attribute | Type | Description |
---|---|---|---|
message |
data-bv-isin-message |
String | The error message |
ISIN | Result |
---|---|
US0378331005 | |
AU0000XVGZA3 | |
GB0002634946 | |
US0378331004 | |
AA0000XVGZA3 |
<form id="isinForm" class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label">ISIN</label>
<div class="col-lg-5">
<input type="text" class="form-control" name="isin" />
</div>
</div>
</form>
$(document).ready(function() {
$('#isinForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
isin: {
validators: {
isin: {
message: 'The value is not valid ISIN'
}
}
}
}
});
});
The following validators might be useful to you: